<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/childForStatusBarStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)childViewControllerForStatusBarStyle"
  },
  "title" : "childForStatusBarStyle"
}
-->

# childForStatusBarStyle

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

```
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()`](/documentation/UIKit/UIViewController/setNeedsStatusBarAppearanceUpdate()) method.

---

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)