Adding Gesture Recognizers with Closures Instead of Selectors
Drag & drop the Extension-UIView.swift file to your project.
sampleView.addTapGestureRecognizer {
print("view tapped")
}
Adding Gesture Recognizers with Closures Instead of Selectors
SwiftApache-2.0