Added default behaviour for return key
This commit is contained in:
parent
ebf4488e90
commit
5f97a21965
|
@ -115,6 +115,10 @@ struct UIKitTextField: UIViewRepresentable {
|
||||||
didHandleReturnKey = nextView?.becomeFirstResponder() ?? false
|
didHandleReturnKey = nextView?.becomeFirstResponder() ?? false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if didHandleReturnKey == false {
|
||||||
|
textField.resignFirstResponder() // default behaviour
|
||||||
|
}
|
||||||
|
|
||||||
return didHandleReturnKey
|
return didHandleReturnKey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue