Instance Method

navigationBarHidden(_:)

Hides the navigation bar for the view.

Declaration

func navigationBarHidden(_ hidden: Bool) -> some View

Parameters

hidden

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

Discussion

Use navigationBarHidden(_:) to hide the navigation bar. This modifier only takes effect when this view is inside of and visible within a NavigationView.

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 statusBar(hidden: Bool) -> View

Sets the visibility of the status bar.