Contents

navigationBarHidden(_:)

Hides the navigation bar for this view.

Declaration

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

Parameters

  • hidden:

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

Discussion

Use this method to hide the navigation bar. This modifier only takes effect when the modified view is inside of and visible within a NavigationView.

See Also

Auxiliary view modifiers