TMTabItemBarButton
@MainActor
open class TMTabItemBarButton : TMBarButton
TMBarButton which mimics appearance of a UITabBarItem, containing a image and label vertically aligned.
-
Tint color of the button when unselected / normal.
Declaration
Swift
@MainActor open override var tintColor: UIColor! { get set } -
Tint color of the button when selected.
Declaration
Swift
@MainActor open var selectedTintColor: UIColor! { get set } -
Size of the image view.
Declaration
Swift
@MainActor open var imageViewSize: CGSize { get set } -
Font of the text label.
Declaration
Swift
@MainActor open var font: UIFont! { get set } -
A Boolean that indicates whether the object automatically updates its font when the device’s content size category changes.
Defaults to
false.Declaration
Swift
@available(iOS 11, *) @MainActor open var adjustsFontForContentSizeCategory: Bool { get set } -
Content Mode for the image view.
Declaration
Swift
@MainActor open var imageContentMode: UIView.ContentMode { get set } -
Whether to shrink the image view when unselected.
Defaults to true.
Declaration
Swift
@MainActor open var shrinksImageWhenUnselected: Bool { get set }
-
Declaration
Swift
@MainActor public required init(for item: TMBarItemable, intrinsicSuperview: UIView?)
-
Declaration
Swift
@MainActor open override func layout(in view: UIView) -
Declaration
Swift
@MainActor open override func layoutBadge(_ badge: TMBadgeView, in view: UIView) -
Declaration
Swift
@MainActor open override func populate(for item: TMBarItemable) -
Declaration
Swift
@MainActor open override func update(for selectionState: TMBarButton.SelectionState)
View on GitHub
Install in Dash
TMTabItemBarButton Class Reference