Extends Item

Apple.TabBarItem

An iOS tab bar item.

Apple.TabBarItems are most commonly used within an Apple.TabBar container.

property Color tint: #Apple.Tint

The tint color to use when the item is selected.

Apple.TabBarItem {
    tint: #red
}

property Url icon

The icon image to use in the tab bar item.

property String label

The label to use for the item.

property Apple.TabBarItem.SystemItem systemItem: .Favorites

Apple.TabBarItem.SystemItem.Custom

A custom tab bar item. You must explicitly specify the icon image and label.

Apple.TabBarItem.SystemItem.More

Apple.TabBarItem.SystemItem.Favorites

Apple.TabBarItem.SystemItem.Featured

Apple.TabBarItem.SystemItem.TopRated

Apple.TabBarItem.SystemItem.Recents

Apple.TabBarItem.SystemItem.Contacts

Apple.TabBarItem.SystemItem.History

Apple.TabBarItem.SystemItem.Bookmarks

Apple.TabBarItem.SystemItem.Search

Apple.TabBarItem.SystemItem.Downloads

Apple.TabBarItem.SystemItem.MostRecent

Apple.TabBarItem.SystemItem.MostViewed

property Bool selected: false

True when the item is selected, false otherwise.

When you are using tab bar items in an Apple.TabBar container, you should not set this property directly. Instead, you control the selected item in the tab bar using the Apple.TabBar.selected property.