---
title: preferredStatusBarUpdateAnimation
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/preferredstatusbarupdateanimation
---

# preferredStatusBarUpdateAnimation

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

## Declaration

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

## Return Value

Return Value The style of status bar animation to use; one of the constants from the UIStatusBarAnimation enum. Default value is UIStatusBarAnimation.fade.

## Discussion

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 method.

## See Also

### Managing the status bar

- [prefersStatusBarHidden](uikit/uiviewcontroller/prefersstatusbarhidden.md)
- [childForStatusBarHidden](uikit/uiviewcontroller/childforstatusbarhidden.md)
- [childForStatusBarStyle](uikit/uiviewcontroller/childforstatusbarstyle.md)
- [preferredStatusBarStyle](uikit/uiviewcontroller/preferredstatusbarstyle.md)
- [UIStatusBarStyle](uikit/uistatusbarstyle.md)
- [modalPresentationCapturesStatusBarAppearance](uikit/uiviewcontroller/modalpresentationcapturesstatusbarappearance.md)
- [setNeedsStatusBarAppearanceUpdate()](uikit/uiviewcontroller/setneedsstatusbarappearanceupdate().md)
