雪岭冰龙
雪岭冰龙

Reputation: 11

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

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!

Upvotes: 1

Views: 259

Answers (1)

XLE_22
XLE_22

Reputation: 5671

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.

Upvotes: 0

Related Questions