0

Does anybody know how to catch or disable/replace the two-finger double-click in an SwiftUI view when Voice Over is running?

The solution proposed here SwiftUI: Two-finger swipe ( scroll ) gesture works, but not when voice over is ON. VO seems to catch the event early.

Chris
  • 1,231
  • 2
  • 10
  • 20

1 Answers1

1

I found out myself. This gesture is called "Magic Tap" and you can intercept it in SwiftUI like this:

.accessibilityAction(.magicTap, {
  // process 2-finger double click
})
Chris
  • 1,231
  • 2
  • 10
  • 20