Fixed focusOnStart

This commit is contained in:
dankito 2020-08-03 19:49:57 +02:00
parent 8695a1c049
commit 6a4f41a578
1 changed files with 1 additions and 3 deletions

View File

@ -58,10 +58,8 @@ struct UIKitTextField: UIViewRepresentable {
} }
if focusOnStart { if focusOnStart {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { // give view some time to show
textField.becomeFirstResponder() textField.becomeFirstResponder()
} }
}
return textField return textField
} }