Instance Property

barStyle

The tab bar style that specifies its appearance.

Declaration

var barStyle: UIBarStyle { get set }

Discussion

This property determines whether the tab bar uses a dark or light visual style when no background image or tint color is specified. Together with the isTranslucent property, this property defines the default visual style of the tab bar. Set this property to the value that best matches the style of your interface. For a list of possible values, see UIBarStyle. The default value of this property is UIBarStyle.default.

See Also

Customizing Tab Bar Appearance

enum UIBarStyle

Defines the stylistic appearance of different types of views.

var isTranslucent: Bool

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

var barTintColor: UIColor?

The tint color to apply to the tab bar background.

var tintColor: UIColor!

The tint color to apply to the tab bar items.

var unselectedItemTintColor: UIColor?

The tint color to apply to unselected tabs.

var backgroundImage: UIImage?

The custom background image for the tab bar.

var shadowImage: UIImage?

The shadow image to use for the tab bar.

var selectionIndicatorImage: UIImage?

The image to use for the selection indicator.