diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift b/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift index 0a07a39c..b9963d88 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift @@ -100,7 +100,9 @@ struct UIKitTextField: UIViewRepresentable { } func textFieldDidChangeSelection(_ textField: UITextField) { - text = textField.text ?? "" + DispatchQueue.main.async { // to not update state during view update + self.text = textField.text ?? "" + } } func textFieldShouldReturn(_ textField: UITextField) -> Bool {