---
title: defaultItemIdentifiers
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstouchbar/defaultitemidentifiers
---

# defaultItemIdentifiers

A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it.

## Declaration

```swift
var defaultItemIdentifiers: [NSTouchBarItem.Identifier] { get set }
```

## Discussion

Discussion Always specify this property for an NSTouchBar object, even if you elect to make the bar noncustomizable. The system: Shows this list’s items by default when the system displays the bar. Includes a preconfigured bar, containing these items, in the associated customization UI (when you have assigned the bar a customizationIdentifier property value); the user can drag the default bar into the Touch Bar, should they want to return to the default configuration. The system archives this property.

## See Also

### Related Documentation

- [customizationIdentifier](appkit/nstouchbar/customizationidentifier-swift.property.md)
- [customizationRequiredItemIdentifiers](appkit/nstouchbar/customizationrequireditemidentifiers.md)
- [customizationAllowedItemIdentifiers](appkit/nstouchbar/customizationalloweditemidentifiers.md)
- [itemIdentifiers](appkit/nstouchbar/itemidentifiers.md)

### Providing bar items

- [delegate](appkit/nstouchbar/delegate.md)
- [templateItems](appkit/nstouchbar/templateitems.md)
- [principalItemIdentifier](appkit/nstouchbar/principalitemidentifier.md)
- [escapeKeyReplacementItemIdentifier](appkit/nstouchbar/escapekeyreplacementitemidentifier.md)
