<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBar/ItemPositioning-swift.enum/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITabBarItemPositioning@UITabBarItemPositioningAutomatic"
  },
  "title" : "UITabBar.ItemPositioning.automatic"
}
-->

# UITabBar.ItemPositioning.automatic

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

```
case automatic
```

## 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`](/documentation/UIKit/UITabBar/itemWidth) and [`itemSpacing`](/documentation/UIKit/UITabBar/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)