<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouchBarProvider/touchBar",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTouchBarProvider(py)touchBar"
  },
  "title" : "touchBar"
}
-->

# touchBar

The property you implement to provide a Touch Bar object.

```
@MainActor var touchBar: NSTouchBar? { get }
```

## Discussion

This property supports key-value observing, which is used by the system, for example, if you replace a running bar. Many subclasses of [`NSResponder`](/documentation/AppKit/NSResponder) implement this property and conform to the [`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider) protocol.

---

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)