Fixed focusOnStart
This commit is contained in:
parent
8695a1c049
commit
6a4f41a578
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue