I want to use a simple horizontal ScrollView
as NavigationLink
inside a List
. However, tapping on the ScrollView
is not registered by a NavigationLink
and therefore does not navigate to the destination.
NavigationView {
List {
NavigationLink(destination: Text("Detail")) {
ScrollView(.horizontal) {
Text("Tapping here does not navigate.")
}
}
}
}
Any ideas on how can we prevent ScrollView
from capturing the navigation tap gesture?