I’ve a textfield with the keyboardType assigned as default and the return key assigned as search. After I faucet contained in the textfield this keyboard is proven.
I would like to cover or handle the OK button to make the identical factor as return button (“Buscar” aka Search in english). Now it solely closes the keyboard. I am utilizing on a display that’s white apart from the searchfield and the return button navigates to a different display but when the keyboard is closed the person can imagine that the app is broke or one thing
Can it’s performed?
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
search(textual content: textField.textual content)
return true
}
That is what the buscar button do (return key). I need the OK button to be hidden or to make the identical because the return key