Class

UITabBarItemAppearance

An object for customizing the appearance of tab bar items.

Declaration

class UITabBarItemAppearance : NSObject

Overview

Use a UITabBarItemAppearance object to customize the appearance of a tab bar item in each of its possible states. You can customize the appearance differently for each state. For example, you might apply different colors to the tab bar item's icon in the normal and selected states.

Topics

Creating a Tab Bar Item Appearance Object

init(style: UITabBarItemAppearanceStyle)

Creates an appearance object with appropriate default values for a tab bar, displaying its items with the specified layout style.

init()

Creates an appearance object with default values for a stacked tab bar item.

Resetting the Appearance Properties

func configureWithDefault(for: UITabBarItemAppearanceStyle)

Configures the tab bar item appearance object with appropriate values for the specified style.

enum UITabBarItemAppearanceStyle

Constants indicating the layout of a tab bar item's content.

Configuring Attributes for Different Item States

var normal: UITabBarItemStateAppearance

The appearance data to apply to the tab bar item when it is enabled, unselected, and not the focused item.

var selected: UITabBarItemStateAppearance

The appearance data to apply to the tab bar item when it is selected.

var disabled: UITabBarItemStateAppearance

The appearance data to apply to the tab bar item when it is disabled.

var focused: UITabBarItemStateAppearance

The appearance data to apply to the tab bar item when it is focused.

Relationships

Inherits From

See Also

Tab Bar Appearance

class UITabBarAppearance

An object for customizing the appearance of a tab bar.

Beta
class UITabBarItemStateAppearance

A data object containing the specific customizations for tab bar items in a particular state.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software