<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/navigationLinkIndicatorVisibility(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF"
  },
  "title" : "navigationLinkIndicatorVisibility(_:)"
}
-->

# navigationLinkIndicatorVisibility(_:)

Configures whether navigation links show a disclosure indicator.

```
@MainActor @export(implementation) @preconcurrency func navigationLinkIndicatorVisibility(_ visibility: Visibility) -> some View
```

## Discussion

If you need to detect whether the navigation disclosure indicator
should be shown for the current view, read the
[`navigationLinkIndicatorVisibility`](/documentation/SwiftUI/EnvironmentValues/navigationLinkIndicatorVisibility) environment value.

The following example hides the indicator for all links in the list.
The indicator can be hidden for a specific link by placing the
modifier on the `NavigationLink` itself.

```swift
struct NoIndicatorLink: View {
    var body: some View {
        NavigationStack {
            List {
                NavigationLink("See detail") {
                    Text("Detail view")
                }
            }
            .navigationLinkIndicatorVisibility(.hidden)
        }
    }
}
```

> Important: Setting the link
> indicator visibility to `.visible` is only supported for navigation
> links contained in a `List` built with the Xcode 16 SDKs and earlier.
> Current releases support setting the indicator visibility to `.visible`
> regardless of whether the link is within a list.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)