Legacy Customizations

Customize appearance information directly on the tab bar item object.

Overview

In iOS 13 and later, customize your tab bar items using the standardAppearance property. You may also continue to use these legacy accessors to override your tab bar item's appearance directly.

Topics

Configuring the Title

titlePositionAdjustment

The offset to use to adjust the title position.

Configuring the Selection Image

selectedImage

The image displayed when the tab bar item is selected.

Configuring the Badge

badgeValue

Text that is displayed in the upper-right corner of the item with a surrounding red oval.

badgeColor

The background color to apply to the badge.

- setBadgeTextAttributes:forState:

Assigns custom text attributes to the badge text.

- badgeTextAttributesForState:

Retrieves the custom text attributes associated with the item's badge text.

See Also

Customizing the Item's Appearance

standardAppearance

The appearance settings for this specific tab bar item.