Fixed that isFocussedChanged() got called even though TextField hasn't been focused (but why did textFieldShouldBeginEditing() get called even though it hasn't been focused?)
This commit is contained in:
parent
cd365fd0cd
commit
d17c91b6d6
|
@ -127,8 +127,10 @@ struct UIKitTextField: UIViewRepresentable {
|
|||
|
||||
func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
|
||||
if isUserInputEnabled {
|
||||
if textField.isFirstResponder {
|
||||
isFocussedChanged?(true)
|
||||
}
|
||||
}
|
||||
|
||||
return isUserInputEnabled
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue