How to implement rotor with auto-text for my custom input method in VoiceOver?

240 Views Asked by At

I develop a input method. I want to let the blind to use it easily. I know screen reader that is installed in IOS called VoiceOver. Blinds can you rotor item "auto-text" to make selection of candidate list item. But I don't know how to do. How should I do for this case? Thanks!

1

There are 1 best solutions below

0
On

Since iOS 10, adding a new rotor option is possible thanks to the UIAccessibilityCustomRotor whose creation is based on 2 elements :

  1. UIAccessibilityCustomRotorSearchPredicate : defines the logic according to the flick type on the screen.
  2. UIAccessibilityCustomRotorItemResult : ensued element from the logic above.

Code snippets (ObjC, swift) and illustrations are provided if you need further explanations for your implementation.