---
title: stackedItemWidth
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitabbarappearance/stackeditemwidth
---

# stackedItemWidth

The width of stacked items in the tab bar.

## Declaration

```swift
var stackedItemWidth: CGFloat { get set }
```

## Discussion

Discussion When the stackedItemPositioning property is set to UITabBar.ItemPositioning.centered, UIKit uses this property to set the width of each item. The default value of this property is 0, which causes UIKit to use a system-defined width for items. For any values above 0, UIKit uses the specified width, which is measured in points. If you try to assign a negative number to this property, UIKit sets the value to 0 instead.

## See Also

### Configuring stacked item appearances

- [stackedLayoutAppearance](uikit/uitabbarappearance/stackedlayoutappearance.md)
- [stackedItemPositioning](uikit/uitabbarappearance/stackeditempositioning.md)
- [stackedItemSpacing](uikit/uitabbarappearance/stackeditemspacing.md)
