From 6a4f41a578ebeb5b84f498c0afda2b9808f4180a Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 3 Aug 2020 19:49:57 +0200 Subject: [PATCH] Fixed focusOnStart --- ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift b/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift index 4717535e..76618c53 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift @@ -58,9 +58,7 @@ struct UIKitTextField: UIViewRepresentable { } if focusOnStart { - DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { // give view some time to show - textField.becomeFirstResponder() - } + textField.becomeFirstResponder() } return textField