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

# init(identifier:items:)

Initializes and returns a group item whose bar is constructed from the supplied items.

## Declaration

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

## See Also

### Creating a group

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