<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarPlacement/statusBar",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ToolbarPlacementV9statusBarACvpZ"
  },
  "title" : "statusBar"
}
-->

# statusBar

The system status bar.

```
static var statusBar: ToolbarPlacement { get }
```

## Discussion

Use with [`toolbarVisibility(_:for:)`](/documentation/SwiftUI/View/toolbarVisibility(_:for:)) to hide the status bar,
or with [`toolbarColorScheme(_:for:)`](/documentation/SwiftUI/View/toolbarColorScheme(_:for:)) to specify the preferred
status bar style.

```swift
content
    .toolbarVisibility(
        hideStatusBar ? .hidden : .automatic,
        for: .statusBar)
    // use light status bar on a dark background
    .toolbarColorScheme(.dark, for: .statusBar)
```

Using this placement with other toolbar customization APIs
has no effect.

---

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)