Created
November 12, 2020 17:25
-
-
Save jbadger3/2b9be9cdd6c140b99c31de65abacd316 to your computer and use it in GitHub Desktop.
iOS manual keyboard dismissal
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 UIApplication: UIGestureRecognizerDelegate { | |
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { | |
return false // set to `false` if you don't want to detect tap during other gestures | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment