Skip to content

Instantly share code, notes, and snippets.

@aybekckaya
Created May 14, 2020 00:04
Show Gist options
  • Save aybekckaya/4649a72b6c0c5965cdaf4bf98d9fc02d to your computer and use it in GitHub Desktop.
Save aybekckaya/4649a72b6c0c5965cdaf4bf98d9fc02d to your computer and use it in GitHub Desktop.
//MARK: InstantPanGesture
class InstantPanGesture : UIPanGestureRecognizer {
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
super.touchesBegan(touches, with: event)
self.state = .began
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment