marcbaldwin / gesturerecognizerclosures Goto Github PK
View Code? Open in Web Editor NEWClosure support for handling gesture recognizers in Swift.
License: MIT License
Closure support for handling gesture recognizers in Swift.
License: MIT License
view.onScreenEdgePan { pan in
// Do something
}
I see this when I try and use this with Rome:
-
GestureRecognizerClosures does not specify a Swift version and none of the targets (
BusyCaliOSand
BusyCaliOSTests) integrating it have the
SWIFT_VERSIONattribute set. Please contact the author or set the
SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
Issue in calling convenience init of super class in
public extension UITapGestureRecognizer {
/**
Initializes a touch gesture-recognizer with the specificed number of taps, touches and handler
*/
public convenience init(taps: Int = 1, touches: Int = 1, handler: @escaping (UITapGestureRecognizer) -> Void) {
self.init(handler: handler, type: UITapGestureRecognizer.self)
numberOfTapsRequired = taps
numberOfTouchesRequired = touches
}
}
Argument labels '(handler:, type:)' do not match any available overloads
Steps to reproduce:
Error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_TtGC25GestureRecognizerClosures14ClosureHandlerCSo22UITapGestureRecognizer_ handle]: unrecognized selector sent to instance 0x600000037200'
Comments
I'm using this library in a demo app that is quite simple. I have two gesture recognizers attached to the same image: one single tap, the other a double tap. The app works fine with version 3.1 but not after upgrade to 4.0. The crash happens immediately on the tap and the underlying block is not called.
I've rolled back to 3.1 to verify correct behavior and upgraded to 4.0 again to validate crashing behavior (with no other changes to app of course).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.