I have a DragGesture set up like this:
This works fine with just one finger. However, once I press down with a second finger, .onEnded is never called.
Is there a way to allow only one finger for the gesture?
I've seen similar issues here and here, but they didn't work for me.
Code Block Swift let drag = DragGesture(minimumDistance: 0) .onChanged { _ in print("changed") } .onEnded { _ in print("ended") } content.gesture(drag) /// content is the View that I'm adding the gesture to
This works fine with just one finger. However, once I press down with a second finger, .onEnded is never called.
Is there a way to allow only one finger for the gesture?
I've seen similar issues here and here, but they didn't work for me.