The extension code below updates the the text but does not update the last letter. So if the word she is type in the textfield the text on the screen only shows sh.
extension ViewController: UITextFieldDelegate{
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
DispatchQueue.main.async {
self.textNode.textGeometry.string = textField.text!
}
return true
}
}