<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIResponder/touchBar",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIResponder(py)touchBar"
  },
  "title" : "touchBar"
}
-->

# touchBar

The Touch Bar object for the responder.

```
var touchBar: NSTouchBar? { get set }
```

## Discussion

This property’s default value — on devices with a Touch Bar — is the <doc://com.apple.documentation/documentation/AppKit/NSTouchBar> instance that the responder’s [`makeTouchBar()`](/documentation/UIKit/UIResponder/makeTouchBar()) method returns. Otherwise, the default value is `nil`.

---

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)