---
title: preferredStatusBarStyle
framework: UIKit
role: symbol
role_heading: Instance Property
platforms: [iOS 7.0+, iPadOS 7.0+, Mac Catalyst 13.1+, visionOS 1.0+]
path: uikit/uiviewcontroller/1621416-preferredstatusbarstyle
---

# preferredStatusBarStyle

The preferred status bar style for the view controller.

## Declaration

```swift
var preferredStatusBarStyle: UIStatusBarStyle { get }
```

## Return Value

A [UIStatusBarStyle](../uistatusbarstyle.md) key indicating your preferred status bar style for the view controller.

## Discussion

You can override the preferred status bar style for a view controller by implementing the [childForStatusBarStyle](childforstatusbarstyle.md) method.

If the return value from this method changes, call the [setNeedsStatusBarAppearanceUpdate()](setneedsstatusbarappearanceupdate().md) method.

## See Also

### Managing the status bar

- [prefersStatusBarHidden](prefersstatusbarhidden.md)
- [childForStatusBarHidden](childforstatusbarhidden.md)
- [childForStatusBarStyle](childforstatusbarstyle.md)
- [UIStatusBarStyle](../uistatusbarstyle.md)
- [modalPresentationCapturesStatusBarAppearance](modalpresentationcapturesstatusbarappearance.md)
- [preferredStatusBarUpdateAnimation](preferredstatusbarupdateanimation.md)
- [setNeedsStatusBarAppearanceUpdate()](setneedsstatusbarappearanceupdate().md)
