Legacy Customizations

Customize appearance information directly on the tab bar object.

Overview

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

Topics

Setting the Bar's Style

barStyle

The tab bar style that specifies its appearance.

UIBarStyle

Defines the stylistic appearance of different types of views.

Configuring Tab Bar Items

tintColor

The tint color to apply to the tab bar items.

Customizing Item Spacing

itemPositioning

The positioning scheme for the tab bar items in the tab bar.

UITabBarItemPositioning

Constants that specify tab bar item positioning.

itemSpacing

The amount of space (in points) to use between tab bar items.

itemWidth

The width (in points) of tab bar items.

Configuring Selection Appearance

unselectedItemTintColor

The tint color to apply to unselected tabs.

selectionIndicatorImage

The image to use for the selection indicator.

selectedImageTintColor

The tint color applied to the selected tab bar item.

Deprecated

Changing the Background

barTintColor

The tint color to apply to the tab bar background.

backgroundImage

The custom background image for the tab bar.

Adding a Shadow

shadowImage

The shadow image to use for the tab bar.

See Also

Customizing Tab Bar Appearance

standardAppearance

The appearance settings for a standard-height tab bar.

leadingAccessoryView

The view at the leading edge of a tab bar on tvOS.

trailingAccessoryView

The view at the trailing edge of a tab bar on tvOS.

translucent

A Boolean value that indicates whether the tab bar is translucent.