paescebu / CustomKeyboardKit

Creating custom In App Keyboards with SwiftUI has never been easier!
GNU General Public License v3.0
203 stars 20 forks source link

Does this support updating the Textfield text with selected cursor position? #24

Closed cemck closed 2 months ago

cemck commented 3 months ago

Does this support updating the Textfield text with cursor position? E.g if I want to update the text in the middle

paescebu commented 3 months ago

Hi @cemck ! Certainly! It directly gives you access to the 'UITextDocumentProxy'. This means you can adjust the insertion point, and insert text right there.

See: https://developer.apple.com/documentation/uikit/uitextdocumentproxy