---
title: childForStatusBarHidden
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/childforstatusbarhidden
---

# childForStatusBarHidden

The view controller to use for determining the hidden state of the status bar.

## Declaration

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

## Discussion

Discussion If your container view controller derives the hidden state of the status bar from one of its child view controllers, implement this property to specify which child view controller you want to control the hidden/unhidden state. If you return nil or don’t override this property, the status bar hidden/unhidden state for self is used. Call setNeedsStatusBarAppearanceUpdate() if the child view controller for determining the hidden state of the status bar changes.

## See Also

### Managing the status bar

- [prefersStatusBarHidden](uikit/uiviewcontroller/prefersstatusbarhidden.md)
- [childForStatusBarStyle](uikit/uiviewcontroller/childforstatusbarstyle.md)
- [preferredStatusBarStyle](uikit/uiviewcontroller/preferredstatusbarstyle.md)
- [UIStatusBarStyle](uikit/uistatusbarstyle.md)
- [modalPresentationCapturesStatusBarAppearance](uikit/uiviewcontroller/modalpresentationcapturesstatusbarappearance.md)
- [preferredStatusBarUpdateAnimation](uikit/uiviewcontroller/preferredstatusbarupdateanimation.md)
- [setNeedsStatusBarAppearanceUpdate()](uikit/uiviewcontroller/setneedsstatusbarappearanceupdate().md)
