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

# UITabBar.ItemPositioning.centered

Center items in the available space.

## Declaration

```swift
case centered
```

## Discussion

Discussion 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

### Constants

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