MenuDataSourceProtocol
public protocol MenuDataSourceProtocol
A menu data source acts as the data source for items presented in the menu of a
MenuViewController
.
-
The number of items in this data source.
Declaration
Swift
var numberOfItems: Int { get }
-
The item at the given index.
Declaration
Swift
func item(atIndex index: Int) -> Item
Parameters
index
The index of the item that is requested.
Return Value
The item at the given index.