CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2025-06-13
by malhal

Original Post

Original - Posted on 2025-06-12
by Alexander Sandberg



            
Present in both answers; Present only in the new answer; Present only in the old answer;

``` struct NoIndicatorLink: View { var body: some View { NavigationStack { List { NavigationLink("See detail") { Text("Detail view") } } .navigationLinkIndicatorVisibility(.hidden) } } } ``` https://developer.apple.com/documentation/swiftui/view/navigationlinkindicatorvisibility(_:)
## 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.

        
Present in both answers; Present only in the new answer; Present only in the old answer;