<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouchBar/templateItems",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTouchBar(py)templateItems"
  },
  "title" : "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.

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

## Discussion

When a bar needs to fill its private items array with items ([`NSTouchBarItem`](/documentation/AppKit/NSTouchBarItem) instances), it employs a variety of potential sources. The first place it looks is this property. For more information, see [`Item objects`](/documentation/AppKit/NSTouchBar#Item-objects).

The system archives this property.

---

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)