<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSTouchBarItemIdentifier"
  },
  "title" : "NSTouchBarItem.Identifier"
}
-->

# NSTouchBarItem.Identifier

An identifier for an item in the Touch Bar.

```
struct Identifier
```

## Topics

### Creating identifiers for space items

[`NSTouchBarItemIdentifierFixedSpaceSmall`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/fixedSpaceSmall)

The identifier of an item appropriate for use as a small space in a Touch Bar.

[`NSTouchBarItemIdentifierFixedSpaceLarge`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/fixedSpaceLarge)

The identifier of an item appropriate for use as a large space in a Touch Bar.

[`NSTouchBarItemIdentifierFlexibleSpace`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/flexibleSpace)

The identifier of an item appropriate for use as a flexible space in a Touch Bar.

### Creating identifiers for Touch Bar nesting

[`NSTouchBarItemIdentifierOtherItemsProxy`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/otherItemsProxy)

The identifier of the special “other items proxy”, which is used to nest bars up the responder chain.

### Creating identifiers for multiple choice items

[`NSTouchBarItemIdentifierCandidateList`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/candidateList)

The standard identifier for a candidate list bar item.

[`NSTouchBarItemIdentifierCharacterPicker`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/characterPicker)

The standard identifier for selecting special characters such as Emoji.

### Creating identifiers for text items

[`NSTouchBarItemIdentifierTextFormat`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/textFormat)

The identifier for a group of text format controls.

[`NSTouchBarItemIdentifierTextAlignment`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/textAlignment)

The identifier for a Touch Bar item used to select the text alignment.

[`NSTouchBarItemIdentifierTextColorPicker`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/textColorPicker)

The identifier for a Touch Bar item used to select the text color.

[`NSTouchBarItemIdentifierTextList`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/textList)

The identifier for a Touch Bar item used to control the text list style.

[`NSTouchBarItemIdentifierTextStyle`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/textStyle)

The identifier for a Touch Bar item used to control the text style.

### Creating a custom identifier

[`init(_:)`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/init(_:))

Creates an item identifier with the specified custom name.

[`init(rawValue:)`](/documentation/AppKit/NSTouchBarItem/Identifier-swift.struct/init(rawValue:))

Creates an item identifier with the specified raw value.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)