1

I'm developing a custom iOS keyboard using SwiftUI. I want to access a large portion of text before the cursor. I'm currently using:

textDocumentProxy.documentContextBeforeInput

However, this only returns up to approximately 200 characters before the cursor. I need access to more text, but documentContextBeforeInput seems to be limited.

I've noticed that some apps like Type AI and AI Keyboard Pro appear to handle much more text before the cursor they move the cursor left to right and again rigt to left retrun all the text

Is there any workaround or method to retrieve more text before the cursor in a custom keyboard extension?

Any help or suggestions would be greatly appreciated!

i tryed this

textDocumentProxy.documentContextBeforeInput

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.