Swift: How to access iOS text replacements from keyboard extension?

384 Views Asked by At

I am building a custom keyboard, and I want to use the built in text replacements feature. The text doesn't change automatically for my keyboard, yet other third party keyboards do work with text replacements.

There is a shouldChangeCharactersInRange callback in UITextField, but that is unavailable for keyboard extensions since we have to use textDocumentProxy

Is there another way to access text replacements?

1

There are 1 best solutions below

0
Grant Oganyan On BEST ANSWER