Contents

navigationDocument(_:)

Configures the view’s document for purposes of navigation.

Declaration

nonisolated func navigationDocument(_ url: URL) -> some View

Parameters

  • url:

    The URL content associated to the navigation title.

Discussion

In iOS, iPadOS, this populates the title menu with a header previewing the document. In macOS, this populates a proxy icon.

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

See Also

Setting titles for navigation content