<!--
{
  "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/centered",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITabBarItemPositioning@UITabBarItemPositioningCentered"
  },
  "title" : "UITabBar.ItemPositioning.centered"
}
-->

# UITabBar.ItemPositioning.centered

Center items in the available space.

```
case centered
```

## Discussion

With this option, 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. When the [`UITabBar.ItemPositioning.automatic`](/documentation/UIKit/UITabBar/ItemPositioning-swift.enum/automatic) option is selected, the tab bar uses this behavior in horizontally regular environments.

---

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)