Created
January 3, 2020 12:22
-
-
Save topherPedersen/fb61db8d6b0fbb6e9ef132cab0d3f1f1 to your computer and use it in GitHub Desktop.
Dismiss Keyboard on Screen Tap in iOS
This file contains 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
@IBAction func dismissKeyboard(_ sender: UITapGestureRecognizer) { | |
mySuperSweetTextField.resignFirstResponder() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment