Instance Method

navigationBarTitle(_:)

Configures the title in the navigation bar for the view.

Declaration

func navigationBarTitle(_ title: Text) -> some View

Parameters

title

A description of this view to display in the navigation bar.

Discussion

This modifier only takes effect when this view is inside of and visible within a NavigationView.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software