Created
January 21, 2018 16:52
-
-
Save mczachurski/502a12b065538193fcbf7a9ad4605f56 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
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) { | |
super.touchesBegan(touches, with: event) | |
if touches.count >= 1 { | |
state = .began | |
return | |
} | |
state = .failed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment