---
title: childForStatusBarStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/childforstatusbarstyle
---

# childForStatusBarStyle

Called when the system needs the view controller to use for determining status bar style.

## Declaration

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

## Return Value

Return Value The view controller whose status bar style should be used.

## Discussion

Discussion If your container view controller derives its status bar style from one of its child view controllers, implement this method and return that child view controller. If you return nil or do not override this method, the status bar style for self is used. If the return value from this method changes, call the setNeedsStatusBarAppearanceUpdate() method.

## See Also

### Managing the status bar

- [prefersStatusBarHidden](uikit/uiviewcontroller/prefersstatusbarhidden.md)
- [childForStatusBarHidden](uikit/uiviewcontroller/childforstatusbarhidden.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)
