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

# init(identifier:)

Creates a new item with the specified identifier.

## Declaration

```swift
init(identifier: NSTouchBarItem.Identifier)
```

## Discussion

Discussion The designated initializer. The identifier must be globally unique for every item, except for space items.

## See Also

### Creating a bar item

- [NSTouchBarItem.Identifier](appkit/nstouchbaritem/identifier-swift.struct.md)
- [init(coder:)](appkit/nstouchbaritem/init(coder:).md)
