Skip to content

Instantly share code, notes, and snippets.

@tiagomartinho
Created June 28, 2018 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagomartinho/ec029e106ee97012c6679dcf3b6f9ab9 to your computer and use it in GitHub Desktop.
Save tiagomartinho/ec029e106ee97012c6679dcf3b6f9ab9 to your computer and use it in GitHub Desktop.
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTapView))
tapGestureRecognizer.numberOfTapsRequired = 2
view.addGestureRecognizer(tapGestureRecognizer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment