0

I have an app similar to most with a main view that scrolls vertically. On top of that, I have a horizontal drag gesture to pull out a side menu.

The issue I am running into when trying to drag the menu open is any vertical movement at all stops the horizontal gesture from working until the vertical movement has ended. So it is very difficult to get the horizontal gesture to activate.

I have tried using .highPriorityGesture and .simultaneousGesture but neither seem to help.

Ken White
  • 123,280
  • 14
  • 225
  • 444
RealCasually
  • 3,593
  • 3
  • 27
  • 34

1 Answers1

0

Adding a minimumDistance on the Vertical gesture should fix it

DragGesture(minimumDistance: 10)