---
title: "navigationDocument(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/navigationdocument(_:)"
---

# navigationDocument(_:)

Configures the view’s document for purposes of navigation.

## Declaration

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

```

## Parameters

- `url`: The URL content associated to the navigation title.

## Discussion

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

- [navigationTitle(_:)](swiftui/view/navigationtitle(_:).md)
- [navigationSubtitle(_:)](swiftui/view/navigationsubtitle(_:).md)
- [navigationDocument(_:preview:)](swiftui/view/navigationdocument(_:preview:).md)
