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

# childViewControllerForTouchBar

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

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

## Discussion

Override this property to have the system use the [`touchBar`](/documentation/UIKit/UIResponder/touchBar) object from a child view controller instead of the current view controller. If [`childViewControllerForTouchBar`](/documentation/UIKit/UIViewController/childViewControllerForTouchBar) is `nil`, the system uses the current view controller’s [`touchBar`](/documentation/UIKit/UIResponder/touchBar) object.

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)