Gesture based keyboard: Making swipes work with voiceover

By tmalik, 12 March, 2016

Forum
App Development and Programming

Hello friends,
I am working on a gesture based keyboard app called Gestype (http://www.gestype.com) which allows anyone to type fast on touchscreen devices, irrespective of their visual ability.

I am trying to make the app work with voiceover and running into issues with making swipes and taps work with voiceover.

Specifically, say, I have one big label. Right swiping, anywhere on that label results in typing the alphabet "a".
However, when I turn voiceover on, the swipe function is lost.

Any suggestions on fixing this ?

Thanks!
Tarun

Options

Comments

By TJT 2001 on Saturday, April 9, 2016 - 19:05

There is a line of code that you can put into your app that basically means that even though VoiceOver may be enabled, VoiceOver will pass all gestures through to the application and not be interpreted by VoiceOver.

There is a guide on this website that gives the exact lines of code and some instructions for use. You can find that guide here: http://www.applevis.com/guides/ios/tips-taking-full-advantage-voiceover-your-app. I hope this was useful for you, and I look forward to your app.

By tmalik on Saturday, April 9, 2016 - 19:05

Oh thats exactly what I need. Thanks!

Btw, will be doing a small kickstarter for this keyboard soon, will keep you guys updated.

cheers,
-Tarun M

By tmalik on Saturday, April 9, 2016 - 19:05

Awesome! It worked !!

Below is the solution in iOS swift:
self.view.isAccessibilityElement = true
self.view.accessibilityTraits = UIAccessibilityTraitAllowsDirectInteraction

Thanks much!
Tarun