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,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