<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBarAppearance/stackedItemWidth",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITabBarAppearance(py)stackedItemWidth"
  },
  "title" : "stackedItemWidth"
}
-->

# stackedItemWidth

The width of stacked items in the tab bar.

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

## Discussion

When the [`stackedItemPositioning`](/documentation/UIKit/UITabBarAppearance/stackedItemPositioning) property is set to [`UITabBar.ItemPositioning.centered`](/documentation/UIKit/UITabBar/ItemPositioning-swift.enum/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.

---

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)