TMBarDataSource
public protocol TMBarDataSource : AnyObject
Data source to a TMBar
that is primarily responsible for providing a bar with contents.
-
Provide a
BarItem
for an index in the bar.Declaration
Swift
func barItem(for bar: TMBar, at index: Int) -> TMBarItemable
Parameters
bar
The bar.
index
Index of the item.
Return Value
The BarItem.