controller.textDocumentProxy.documentContext not detecting pasted text in Gmail or Email apps

I found an issue related to Gmail and Email apps. When I try to fetch text using controller.textDocumentProxy.documentContext, it works fine every time in my original app and in the Messages app. However, in Gmail or Email apps, after pasting text, controller.textDocumentProxy.documentContext returns nil until the pasted text is edited. The same scenario works correctly in Messages and my original app. i'm trying it from my keyboard extension and my keyboard builded bases on KeyboardKit SDK when i jump to text Document Proxy it's referring me to UITextDocumentProxy

Hello Jahongir,

Can you please share a code snippet of how you are using textDocumentProxy? Or better yet a focused sample project that reproduces this issue? Can you also please share the relevant code from your keyboard extension?

Thank you for your patience,

Richard Yeh  Developer Technical Support

controller.textDocumentProxy.documentContext not detecting pasted text in Gmail or Email apps
 
 
Q