Created
November 11, 2021 06:42
-
-
Save dimkagithub/09e7b4825d5c7676b68370017e1a6090 to your computer and use it in GitHub Desktop.
Dismiss keyboard
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
private func dismissKeyboardOnTap() { | |
self.view.addGestureRecognizer(UITapGestureRecognizer(target: self.view, action: #selector(UIView.endEditing(_: )))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment