I Am Aware that with a button you can just add a tap gesture before the longHoldGesture to make it scrollable again, but I do not know how to fix not being able to scroll on top of a navigation link that has a long-press gesture. Could anyone help me out here? Thanks In advance, here is the code of the situation I recreated:
struct ContentView: View{
var body: some View{
NavigationView{
ScrollView{
VStack{
ForEach(1...10, id: \.self){ index in
NavigationLink(destination: TestView(), label: {
Text("test link")
}).simultaneousGesture(LongPressGesture().onEnded{_ in })
}
}
}
}
}
}
struct TestView: View{
var body: some View{
Text("Hello there")
}
}