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