---
title: identifier
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstouchbaritem/identifier-swift.property
---

# identifier

The identifier for this item.

## Declaration

```swift
var identifier: NSTouchBarItem.Identifier { get }
```

## Discussion

Discussion This read-only property returns the value the item was initialized with. For all items other than spaces, this value must be globally unique.

## See Also

### Identifying a bar item

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