Instance Method

statusBar(hidden:)

Sets the visibility of the status bar.

Declaration

func statusBar(hidden: Bool) -> some View

Parameters

hidden

A Boolean value that indicates whether to hide the status bar.

Discussion

Use statusBar(hidden:) to show or hide the status bar.

See Also

Configuring Navigation and Status Bar Views

func navigationBarTitle(Text) -> View

Sets the title in the navigation bar for this view.

func navigationBarTitle(Text, displayMode: NavigationBarItem.TitleDisplayMode) -> View

Sets the title and display mode in the navigation bar for this view.

func navigationBarTitle(LocalizedStringKey) -> View

Sets the title of this view’s navigation bar with a localized string.

func navigationBarTitle<S>(S) -> View

Sets the title of this view’s navigation bar with a string.

func navigationBarTitle(LocalizedStringKey, displayMode: NavigationBarItem.TitleDisplayMode) -> View

Sets the title and display mode in the navigation bar for this view.

func navigationBarHidden(Bool) -> View

Hides the navigation bar for the view.