TMBarButtonCollection
public final class TMBarButtonCollection<BarButton> : TMTransitionStyleable where BarButton : TMBarButton
Container for BarButton objects and related controllers.
-
All bar buttons.
Declaration
Swift
public internal(set) var all: [BarButton] { get set }
-
Style to use when transitioning between buttons.
Declaration
Swift
public var transitionStyle: TMTransitionStyle
-
Customize the bar buttons that are added to the bar.
Note: The customization closure is retained and will be called every time a bar button is added/removed.
Parameter customize: The closure in which customization takes place. *
Declaration
Swift
public func customize(_ customize: @escaping Customization)
-
Get a button that is associated with a bar item.
Declaration
Swift
public func `for`(item: TMBarItemable) -> BarButton?
Parameters
item
Item to search for.
Return Value
Associated bar button.
-
Get buttons associated with bar items.
Declaration
Swift
public func `for`(items: TMBarItemable...) -> [BarButton]
Parameters
items
Items to search for.
Return Value
Associated bar buttons.