Created
March 8, 2022 09:07
-
-
Save KrauserHuang/51156a0f0eb0974c7c0baeae4771f335 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension ViewController: UITextFieldDelegate { | |
| func textFieldShouldReturn(_ textField: UITextField) -> Bool { | |
| // remove the textField from first responder | |
| textField.resignFirstResponder() | |
| return true | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment