---
title: childForStatusBarStyle
framework: UIKit
role: symbol
role_heading: Instance Property
platforms: [iOS 7.0+, iPadOS 7.0+, Mac Catalyst 13.1+, visionOS 1.0+]
path: uikit/uiviewcontroller/1621433-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

The view controller whose status bar style should be used.

## 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()](setneedsstatusbarappearanceupdate().md) method.

## See Also

### Managing the status bar

- [prefersStatusBarHidden](prefersstatusbarhidden.md)
- [childForStatusBarHidden](childforstatusbarhidden.md)
- [preferredStatusBarStyle](preferredstatusbarstyle.md)
- [UIStatusBarStyle](../uistatusbarstyle.md)
- [modalPresentationCapturesStatusBarAppearance](modalpresentationcapturesstatusbarappearance.md)
- [preferredStatusBarUpdateAnimation](preferredstatusbarupdateanimation.md)
- [setNeedsStatusBarAppearanceUpdate()](setneedsstatusbarappearanceupdate().md)
