Skip to content

Instantly share code, notes, and snippets.

@natebirkholz
Created August 9, 2021 16:25
Show Gist options
  • Save natebirkholz/d162929290099a64c9182c377a716f37 to your computer and use it in GitHub Desktop.
Save natebirkholz/d162929290099a64c9182c377a716f37 to your computer and use it in GitHub Desktop.
let tapClosure: (UITapGestureRecognizer) -> () = { (tapRecognizer) in
print("In tap closure")
}
let recognizer = ClosureGestureRecognizer(action: tapClosure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment