<!--
{
  "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/preferredStatusBarUpdateAnimation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)preferredStatusBarUpdateAnimation"
  },
  "title" : "preferredStatusBarUpdateAnimation"
}
-->

# preferredStatusBarUpdateAnimation

Specifies the animation style to use for hiding and showing the status bar for the view controller.

```
var preferredStatusBarUpdateAnimation: UIStatusBarAnimation { get }
```

## Return Value

The style of status bar animation to use; one of the constants from the [`UIStatusBarAnimation`](/documentation/UIKit/UIStatusBarAnimation) enum. Default value is [`UIStatusBarAnimation.fade`](/documentation/UIKit/UIStatusBarAnimation/fade).

## Discussion

This property comes into play only when you actively change the status bar’s show/hide state by changing the return value of the [`prefersStatusBarHidden`](/documentation/UIKit/UIViewController/prefersStatusBarHidden) 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)