Post

Replies

Boosts

Views

Activity

iOS Accessibility - Direct Interaction for Keyboards in accessibility mode
Hello all, I am creating an app with the accessibility mode support for an iPad device. I have a requirement where user needs to switch to a particular view and the user is allowed to draw in that area as well as pass keyboard key inputs to the view.

When VoiceOver is on, all the touch and keyboard inputs are being captured by Accessibility engine and these events are not received in the app. As per my requirement I need to capture the keyboard key inputs as well as touch events for the view. For receiving the touch inputs directly in the app I am using “UIAccessibilityTraitAllowsDirectInteraction” and it works fine, but the keyboard doesn’t. My query is : is there anything available like “UIAccessibilityTraitAllowsDirectInteraction” for keyboards in accessibility/ VoiceOver mode? Or is there a way if I can disable the accessibility/ VoiceOver for a particular view in a ViewController when the accessibility mode is on for the iPad device?
 Any help would be appreciated!
2
0
804
Mar ’23