---
title: UITabBar.ItemPositioning.automatic
framework: uikit
role: symbol
role_heading: Case
path: uikit/uitabbar/itempositioning-swift.enum/automatic
---

# UITabBar.ItemPositioning.automatic

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

## Declaration

```swift
case automatic
```

## Discussion

Discussion In a horizontally compact environment, the tab bar spreads items across the entire space, adjusting inter-item spacing as needed. In a horizontally regular environment, 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. This configuration has the potential to leave space along the left and right edges of the tab bar.

## See Also

### Constants

- [UITabBar.ItemPositioning.fill](uikit/uitabbar/itempositioning-swift.enum/fill.md)
- [UITabBar.ItemPositioning.centered](uikit/uitabbar/itempositioning-swift.enum/centered.md)
