NavigationDrawer
public class NavigationDrawer : UIView
extension NavigationDrawer: UITableViewDataSource
extension NavigationDrawer: UITableViewDelegate
NavigationDrawer is a class that represents a component from the design system.
The NavigationDrawerSubitem has 3 states:
- normal
- disabled
- selected
An Item has important properties to configure:
- label
- icon
- disabled
- tagText
- subitems
Use the methods of NavigationDrawerDelegate protocol to manage the following features:
- numberOfItems
- numberOfSubitems
- didSelectItem
- didSelectSubitem
- configureItem
configureSubitem
Requires
It’s necessary to configure the Design System with a theme or fatalError will be raised.
DesignSystem().configure(with: AvailableTheme)
-
Undocumented
Declaration
Swift
public weak var delegate: NavigationDrawerDelegate?
-
Undocumented
Declaration
Swift
public init(tableView: UITableView = UITableView(), headerView: UIView? = nil, footerView: UIView? = nil)
-
Undocumented
Declaration
Swift
public func reloadData()
-
Undocumented
See moreDeclaration
Swift
class IndexMenu : NSObject
-
Undocumented
Declaration
Swift
public func numberOfSections(in tableView: UITableView) -> Int
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)