Releases: djnivek/SwiftyGestureRecognizer
Releases · djnivek/SwiftyGestureRecognizer
Generics works fine
The previous generics support was unstable. This version works fine.
New way to install a recognizer into a view.
GestureRecognizer(for: label).pressed { (label, _) in
label.textColor = .red
}
Generics Support
Generics support added
GestureRecognizer.install(contactLabel).pressed { (element, recognizer) in
(element as! UILabel).textColor = .red
}
Can now be implemented like this:
GestureRecognizer.install(contactLabel).pressed { (label, recognizer) in
label.textColor = .red
}