Reputation: 14571
I have an app that implements a custom text view by using the UITextInput
, UIKeyInput
and UITextInputTraits
protocols.
If you've installed iOS13, you've seen that the keyboard has a snazzy new feature that lets you swipe across the keys to type.
I'm wanting to disable this feature for now and I was wondering, has anyone found a way yet? I've looked around in the docs for the aforementioned protocols and haven't been able to find anything. Is it even possible?
Upvotes: 3
Views: 1398
Reputation: 9935
It's possible to disable the prompt if you want to run UI tests if you add this key to your Info.plist
:
Key: KeyboardContinuousPathEnabled
Type: Boolean
Value: NO
Or just copy and paste this into the XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeyboardContinuousPathEnabled</key>
<false/>
</dict>
</plist>
Enabling this option will disable the simulator from showing the 'Slide to type' prompt but doesn't disable the feature - this is not possible as an OS-wide preference.
Happy coding! :)
Upvotes: 1
Reputation: 1739
I think imposible. Because it is system config. User manual go setting and disable it. My app will can’t change the setting
Upvotes: 1