I\'m working on app for blind people first i needed to use swipe gesture and after search i can do it by using
override func accessibilityScroll( direction
You can override accessibilityScroll
method:
override func accessibilityScroll(_ direction:
UIAccessibilityScrollDirection) -> Bool {
super.accessibilityScroll(direction)
if direction == UIAccessibilityScrollDirection.left {
// do your stuff
}
if direction == UIAccessibilityScrollDirection.right {
// do your stuff
}
return true
}