---
title: NSTouchBarItem.Identifier
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nstouchbaritem/identifier-swift.struct
---

# NSTouchBarItem.Identifier

An identifier for an item in the Touch Bar.

## Declaration

```swift
struct Identifier
```

## Topics

### Creating identifiers for space items

- [fixedSpaceSmall](appkit/nstouchbaritem/identifier-swift.struct/fixedspacesmall.md)
- [fixedSpaceLarge](appkit/nstouchbaritem/identifier-swift.struct/fixedspacelarge.md)
- [flexibleSpace](appkit/nstouchbaritem/identifier-swift.struct/flexiblespace.md)

### Creating identifiers for Touch Bar nesting

- [otherItemsProxy](appkit/nstouchbaritem/identifier-swift.struct/otheritemsproxy.md)

### Creating identifiers for multiple choice items

- [candidateList](appkit/nstouchbaritem/identifier-swift.struct/candidatelist.md)
- [characterPicker](appkit/nstouchbaritem/identifier-swift.struct/characterpicker.md)

### Creating identifiers for text items

- [textFormat](appkit/nstouchbaritem/identifier-swift.struct/textformat.md)
- [textAlignment](appkit/nstouchbaritem/identifier-swift.struct/textalignment.md)
- [textColorPicker](appkit/nstouchbaritem/identifier-swift.struct/textcolorpicker.md)
- [textList](appkit/nstouchbaritem/identifier-swift.struct/textlist.md)
- [textStyle](appkit/nstouchbaritem/identifier-swift.struct/textstyle.md)

### Creating a custom identifier

- [init(_:)](appkit/nstouchbaritem/identifier-swift.struct/init(_:).md)
- [init(rawValue:)](appkit/nstouchbaritem/identifier-swift.struct/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a bar item

- [init(identifier:)](appkit/nstouchbaritem/init(identifier:).md)
- [init(coder:)](appkit/nstouchbaritem/init(coder:).md)
