<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGroupTouchBarItem/preferredItemWidth",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGroupTouchBarItem(py)preferredItemWidth"
  },
  "title" : "preferredItemWidth"
}
-->

# preferredItemWidth

The preferred width for items in the group.

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

## Discussion

This width applies when [`prefersEqualWidths`](/documentation/AppKit/NSGroupTouchBarItem/prefersEqualWidths) is <doc://com.apple.documentation/documentation/Swift/true>.

This is the width that items are set to if there is enough room, and if the items don’t clip.

This value is ignored if it is negative. The default value is `-1`.

---

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)