Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 4 compiler failure with #selector #9

Open
bachonk opened this issue Nov 21, 2017 · 2 comments
Open

Swift 4 compiler failure with #selector #9

bachonk opened this issue Nov 21, 2017 · 2 comments

Comments

@bachonk
Copy link

bachonk commented Nov 21, 2017

To reproduce

  1. Create new project in Swift 4 with Cocoapods
  2. Add DMSwipeCards to Podfile and pod install
  3. Compile project

There is a compiler error at:

let panGesture = UIPanGestureRecognizer(target: self, action: #selector(dragEvent(gesture:)))

Argument of '#selector' refers to instance method 'dragEvent(gesture:)' that is not exposed to Objective-C

@dsmailes
Copy link

dsmailes commented Dec 9, 2017

Set the pod to build to Swift 3.2 and it will compile.

@bachonk
Copy link
Author

bachonk commented Dec 11, 2017

Ok thanks. I guess that means this issue is more of a feature request for Swift 4 support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants