---
title: setNeedsStatusBarAppearanceUpdate()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiviewcontroller/setneedsstatusbarappearanceupdate()
---

# setNeedsStatusBarAppearanceUpdate()

Indicates to the system that the view controller status bar attributes have changed.

## Declaration

```swift
func setNeedsStatusBarAppearanceUpdate()
```

## Discussion

Discussion Call this method if the view controller’s status bar attributes, such as hidden/unhidden status or style, change. If you call this method within an animation block, the changes are animated along with the rest of the animation block.

## 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)
- [preferredStatusBarUpdateAnimation](uikit/uiviewcontroller/preferredstatusbarupdateanimation.md)
