---
title: templateItems
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstouchbar/templateitems
---

# templateItems

The primary source of items that the Touch Bar uses to fill its private items array, unless you provide items using a delegate.

## Declaration

```swift
var templateItems: Set<NSTouchBarItem> { get set }
```

## Discussion

Discussion When a bar needs to fill its private items array with items (NSTouchBarItem instances), it employs a variety of potential sources. The first place it looks is this property. For more information, see Item objects. The system archives this property.

## See Also

### Providing bar items

- [delegate](appkit/nstouchbar/delegate.md)
- [defaultItemIdentifiers](appkit/nstouchbar/defaultitemidentifiers.md)
- [principalItemIdentifier](appkit/nstouchbar/principalitemidentifier.md)
- [escapeKeyReplacementItemIdentifier](appkit/nstouchbar/escapekeyreplacementitemidentifier.md)
