<!--
{
  "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/stackedItemSpacing",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITabBarAppearance(py)stackedItemSpacing"
  },
  "title" : "stackedItemSpacing"
}
-->

# stackedItemSpacing

The amount of space to insert between stacked tab bar items.

```
var stackedItemSpacing: 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 determine how much space to insert between the items. The default value of this property is `0`, which causes UIKit to insert a system-defined default space between items. For any values above `0`, UIKit inserts the specified amount of space, measured in points, between the items. 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)