MenuCollectionController

open class MenuCollectionController : BaseCollectionController<MenuItemCellPresentable>

A subclass of CollectionController which displays the Menu for selection in a MenuViewController.

This CollectionController utilizes ListCollectionViewFlowLayout which imitates the table view layout.

By default, this uses MenuItemCell for its cells. The associated type should conform to the MenuItemCellPresentable to be able to configure the cells to present content of the type.

Note

Due to what maybe seems to be a bug with the Swift, methods not initially in the superclass and implemented in the subclass may not be executed. To get around this, the method needs to have an @objc attribue.

UICollectionViewDelegate

  • Undocumented

    Declaration

    Swift

    override open func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)

UICollectionViewDataSource

  • Undocumented

    Declaration

    Swift

    override open func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell

ContentLoader

  • Undocumented

    Declaration

    Swift

    override open func loadContent()

Open Methods

  • Called once the Logout button was pressed.

    Declaration

    Swift

    open func didPressLogoutButton(_ logOutButton: UIButton)

    Parameters

    logOutButton

    The log out button.