I have the following view:
List {
VStack {
InnerVStack {
...
}
InnerVStack {
...
Cell()
.background {
NavigationLink()
}
...
}
}
}
The problem is, that whenever the whole VStack
is tapped, the NavigationLink
is activated.
I have seen some more people deal with the same problem, but really to no avail:
NavigationLink inside List applies to HStack instead of each element
I want to achieve such behavior, that only when Cell
is tapped, then the NavigationLink
is activated and user is redirected to another scene.