Contents

navigationTitle(_:)

Configures the view’s title for purposes of navigation, using a string binding.

Declaration

nonisolated func navigationTitle(_ title: Binding<String>) -> some View

Parameters

  • title:

    The text of the title.

Discussion

In iOS, iPadOS, and macOS, this allows editing the navigation title when the title is displayed in the toolbar.

Refer to the Configure your apps navigation titles article for more information on navigation title modifiers.

See Also

Setting titles for navigation content