Skip to content

Instantly share code, notes, and snippets.

@aybekckaya
Created June 1, 2019 06:26
Show Gist options
  • Save aybekckaya/e190214d2bf190a830d49463e49db64e to your computer and use it in GitHub Desktop.
Save aybekckaya/e190214d2bf190a830d49463e49db64e to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
let likeGesture = LikeGestureRecognizer(target: self, action: #selector(handleLikeGesture(gesture:)))
self.viewGesture.addGestureRecognizer(likeGesture)
}
@objc private func handleLikeGesture(gesture:LikeGestureRecognizer) {
print("I never be called. You have to implement gesture recognizer's state setters")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment