Since ZStack stacks views on top of each other you can take advantage of that! Place a Text view on top of NavigationLink and replace Text view in the body of NavigationLink with an EmptyView
List(items, id: \.self) { item in
ZStack(alignment: .leading) {
Text(item.name)
NavigationLink(destination: Text(item.name)) {
EmptyView()
}
.opacity(0.0)
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI