Last active
August 30, 2020 12:58
-
-
Save agammahajan1/88782840456c2ed43534e7d947e91ab2 to your computer and use it in GitHub Desktop.
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
@objc func didTapSnap(_ sender: UITapGestureRecognizer) { | |
let touchLocation = sender.location(ofTouch: 0, in: view) | |
if touchLocation.x < view.frame.width/2 { | |
changePlayer(forward: false) | |
} | |
else { | |
fillupLastPlayedSnap() | |
changePlayer(forward: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment