Chris
Chris

Reputation: 1405

Catch two finger double click in SwiftUI & VoiceOver?

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.

Upvotes: 0

Views: 1050

Answers (1)

Chris
Chris

Reputation: 1405

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
})

Upvotes: 1

Related Questions