When VoiceOver is active on an iOS device, the single-finger swipe(left or right) gesture allows users to browse the different elements in the view. Is there a way to detect if
I ended up creating a category/extension on UIView and overriding accessibilityElementDidBecomeFocused().
Here I can get a global hook, which gets called every time the accessibility state has changed.
Swift example:
extension UIView {
//MARK: Accessibility
override public func accessibilityElementDidBecomeFocused() {
super.accessibilityElementDidBecomeFocused()
UIApplication.sharedApplication().sendEvent(UIEvent())
}
}