navigationBar
TypeScriptstatic get navigationBar(): ToolbarPlacementSwift declarationstatic var navigationBar: ToolbarPlacement { get }The navigation bar of an app.
struct · iOS 16.0+ · SDK 27.1
struct ToolbarPlacementThe placement of a toolbar. Use this type in conjunction with modifiers like ``View/toolbarBackground(_:for:)`` and ``View/toolbarVisibility(_:for:)`` to customize the appearance of different bars managed by SwiftUI. Not all bars support all types of customizations. See ``ToolbarItemPlacement`` to learn about the different regions of these toolbars that you can place your own controls into.
static get navigationBar(): ToolbarPlacementSwift declarationstatic var navigationBar: ToolbarPlacement { get }The navigation bar of an app.
static get tabBar(): ToolbarPlacementSwift declarationstatic var tabBar: ToolbarPlacement { get }The tab bar of an app.
static get automatic(): ToolbarPlacementSwift declarationstatic var automatic: ToolbarPlacement { get }The primary toolbar. Depending on the context, this may refer to the navigation bar of an app on iOS, or watchOS, the tab bar of an app on tvOS, or the window toolbar / window titlebar of an app on macOS.
static get bottomBar(): ToolbarPlacementSwift declarationstatic var bottomBar: ToolbarPlacement { get }The bottom toolbar of an app.
static get statusBar(): ToolbarPlacementSwift declarationstatic var statusBar: ToolbarPlacement { get }The system status bar. Use with ``View/toolbarVisibility(_:for:)`` to hide the status bar, or with ``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.
No declarations were skipped in this snapshot.