Enumeration

UITabBar.ItemPositioning

Constants that specify tab bar item positioning.

Declaration

enum ItemPositioning : Int

Topics

Constants

case automatic

Specifies automatic tab bar item positioning according to the user interface idiom, as follows:

case fill

Distribute items across the entire width of the tab bar. When the UITabBar.ItemPositioning.automatic option is selected, the tab bar uses this behavior in horizontally compact environments.

case centered

Center items in the available space. With this option, the tab bar uses the itemWidth and itemSpacing properties to set the width of items and the spacing between items, positioning those items in the center of the available space When the UITabBar.ItemPositioning.automatic option is selected, the tab bar uses this behavior in horizontally regular environments.

See Also

Customizing the Item Spacing

var itemPositioning: UITabBar.ItemPositioning

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

var itemSpacing: CGFloat

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

var itemWidth: CGFloat

The width (in points) of tab bar items.