---
title: preferredItemWidth
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsgrouptouchbaritem/preferreditemwidth
---

# preferredItemWidth

The preferred width for items in the group.

## Declaration

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

## Discussion

Discussion This width applies when prefersEqualWidths is 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.

## See Also

### Configuring item width

- [prefersEqualWidths](appkit/nsgrouptouchbaritem/prefersequalwidths.md)
