TMBarItem
open class TMBarItem : TMBarItemable
Default TMBarItemable that can be displayed in a TMBar.
-
Declaration
Swift
open var title: String? { get set } -
Declaration
Swift
open var image: UIImage? { get set } -
Declaration
Swift
open var selectedImage: UIImage? { get set } -
Declaration
Swift
open var badgeValue: String? { get set } -
Declaration
Swift
public var accessibilityLabel: String? { get set } -
Declaration
Swift
public var accessibilityHint: String? { get set }
-
Create an Item with a title.
Declaration
Swift
public convenience init(title: String, badgeValue: String? = nil)Parameters
titleTitle of the item.
badgeValueBadge value to display.
-
Create an Item with an image.
Declaration
Swift
public convenience init(image: UIImage, selectedImage: UIImage? = nil, badgeValue: String? = nil)Parameters
imageImage of the item.
selectedImageImage of the item when selected.
badgeValueBadge value to display.
-
Create an Item with a title and an image.
Declaration
Swift
public convenience init(title: String, image: UIImage, selectedImage: UIImage? = nil, badgeValue: String? = nil)Parameters
titleTitle of the item.
imageImage of the item.
selectedImageImage of the item when selected.
badgeValueBadge value to display.
View on GitHub
Install in Dash
TMBarItem Class Reference