NavigationDrawerDelegate

public protocol NavigationDrawerDelegate : AnyObject

A protocol with the delegate methods for navigation drawer configuration

  • A method to return the number of itens in the Navigation Drawer

    Declaration

    Swift

    func numberOfItems() -> Int
  • A method to return the number of subitens of an item in the Navigation Drawer

    Declaration

    Swift

    func numberOfSubitems(in item: Int) -> Int

    Parameters

    item

    the index of the item

  • The method that is called when the item is selected

    Declaration

    Swift

    func didSelectItem(at index: Int)

    Parameters

    index

    the index of the selected item

  • The method that is called when the subitem is selected

    Declaration

    Swift

    func didSelectSubitem(at index: NavigationDrawer.IndexMenu)

    Parameters

    index

    the index of the subitem

  • The method to configure an item at an index in the Navigation Drawer

    Declaration

    Swift

    func configureItem(_ item: NavigationDrawerItemCell, at index: Int)

    Parameters

    item

    the customized NavigationDrawerItemCell for the index

    index

    the index of the item

  • The method to configure a subitem at an index in the Navigation Drawer

    Declaration

    Swift

    func configureSubitem(_ subitem: NavigationDrawerSubitemCell, at index: NavigationDrawer.IndexMenu)

    Parameters

    subitem

    the customized NavigationDrawerSubitemCell for the index

    index

    the index of the subitem