---
title: "init(identifier:items:allowedCompressionOptions:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsgrouptouchbaritem/init(identifier:items:allowedcompressionoptions:)"
---

# init(identifier:items:allowedCompressionOptions:)

Initializes and returns a group item whose bar is constructed from the supplied items, and with the specified compression options.

## Declaration

```swift
convenience init(identifier: NSTouchBarItem.Identifier, items: [NSTouchBarItem], allowedCompressionOptions: NSUserInterfaceCompressionOptions)
```

## Discussion

Discussion Use this initializer to specify which compression options are applied to the group item. The system applies options in the following default order: breakEqualWidths, reduceMetrics, hideText, hideImages. If you want to use non-standard compression options, add them by using the prioritizedCompressionOptions property.

## See Also

### Creating a group

- [init(identifier:items:)](appkit/nsgrouptouchbaritem/init(identifier:items:).md)
- [init(alertStyleWithIdentifier:)](appkit/nsgrouptouchbaritem/init(alertstylewithidentifier:).md)
