TMTabItemBarButton
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
open override var tintColor: UIColor! { get set }
-
Tint color of the button when selected.
Declaration
Swift
open var selectedTintColor: UIColor! { get set }
-
Size of the image view.
Declaration
Swift
open var imageViewSize: CGSize { get set }
-
Font of the text label.
Declaration
Swift
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, *) open var adjustsFontForContentSizeCategory: Bool { get set }
-
Content Mode for the image view.
Declaration
Swift
open var imageContentMode: UIView.ContentMode { get set }
-
Whether to shrink the image view when unselected.
Defaults to true.
Declaration
Swift
open var shrinksImageWhenUnselected: Bool { get set }
-
Declaration
Swift
public required init(for item: TMBarItemable, intrinsicSuperview: UIView?)
-
Declaration
Swift
open override func layout(in view: UIView)
-
Declaration
Swift
open override func layoutBadge(_ badge: TMBadgeView, in view: UIView)
-
Declaration
Swift
open override func populate(for item: TMBarItemable)
-
Declaration
Swift
open override func update(for selectionState: TMBarButton.SelectionState)