---
title: childViewControllerForTouchBar
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/childviewcontrollerfortouchbar
---

# childViewControllerForTouchBar

The child view controller that the system uses to display content in the Touch Bar.

## Declaration

```swift
var childViewControllerForTouchBar: UIViewController? { get }
```

## Discussion

Discussion Override this property to have the system use the touchBar object from a child view controller instead of the current view controller. If childViewControllerForTouchBar is nil, the system uses the current view controller’s touchBar object. The default value is nil.

## See Also

### Managing the Touch Bar

- [setNeedsTouchBarUpdate()](uikit/uiviewcontroller/setneedstouchbarupdate().md)
