insertText(_:)
Inserts a character into the displayed text.
Declaration
func insertText(_ text: String)Parameters
- text:
A string object representing the character typed on the system keyboard.
Mentioned in
Discussion
Add the character text to your class’s backing store at the index corresponding to the cursor and redisplay the text.