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

# modalPresentationCapturesStatusBarAppearance

Specifies whether a view controller, presented non-fullscreen, takes over control of status bar appearance from the presenting view controller.

```
var modalPresentationCapturesStatusBarAppearance: Bool { get set }
```

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

When you present a view controller by calling the [`present(_:animated:completion:)`](/documentation/UIKit/UIViewController/present(_:animated:completion:)) method, status bar appearance control is transferred from the presenting to the presented view controller only if the presented controller’s [`modalPresentationStyle`](/documentation/UIKit/UIViewController/modalPresentationStyle) value is [`UIModalPresentationStyle.fullScreen`](/documentation/UIKit/UIModalPresentationStyle/fullScreen). By setting this property to <doc://com.apple.documentation/documentation/Swift/true>, you specify the presented view controller controls status bar appearance, even though presented non-fullscreen.

The system ignores this property’s value for a view controller presented fullscreen.

---

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)