I created a custom keyboard to fill specific text in a table. To do this I connected the button from the storyboard to the viewController.swift
@IBAction func ECOAction(_ sender: Any) {
self.textDocumentProxy.insertText("ECO")
}
All the buttons works as desired. For easier work I want to have a button that selects all text where the buttons insert their text. Like using the short-cut ⌘ + a. An other way is when a button is touched, the existing content is deleted before inserting the new.
I have no idea how to do it nor where to search. I appreciate any suggestion and keywords for searching a solution.
self.textDocumentProxy.deleteBackward()
but there is nothing to do it forward... – Christian Jul 22 '19 at 11:09