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) -> IntParameters
itemthe index of the item
-
The method that is called when the item is selected
Declaration
Swift
func didSelectItem(at index: Int)Parameters
indexthe index of the selected item
-
The method that is called when the subitem is selected
Declaration
Swift
func didSelectSubitem(at index: NavigationDrawer.IndexMenu)Parameters
indexthe 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
itemthe customized
NavigationDrawerItemCellfor the indexindexthe 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
subitemthe customized
NavigationDrawerSubitemCellfor the indexindexthe index of the subitem