---
title: touchBar
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiresponder/touchbar
---

# touchBar

The Touch Bar object for the responder.

## Declaration

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

## Discussion

Discussion This property’s default value — on devices with a Touch Bar — is the NSTouchBar instance that the responder’s makeTouchBar() method returns. Otherwise, the default value is nil.

## See Also

### Managing the Touch Bar

- [makeTouchBar()](uikit/uiresponder/maketouchbar().md)
