## iOS 17.0+, macOS 14.0+
Apple has now finally added a new [`navigationLinkIndicatorVisibility(_:)`](https://developer.apple.com/documentation/swiftui/view/navigationlinkindicatorvisibility(_:)) modifier that allows you to properly hide the indicator.
```swift
struct NoIndicatorLink: View {
var body: some View {
NavigationStack {
List {
NavigationLink("See detail") {
Text("Detail view")
}
}
.navigationLinkIndicatorVisibility(.hidden)
}
}
}
```
As mentioned in the documentation, note:
> 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.