Fixed focusOnStart
This commit is contained in:
parent
8695a1c049
commit
6a4f41a578
|
@ -58,9 +58,7 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue