D-32 / DMSwipeCards

🃏 Tinder like card interface
MIT License
253 stars 31 forks source link

Swift 4 compiler failure with `#selector` #9

Open bachonk opened 6 years ago

bachonk commented 6 years ago

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: https://github.com/D-32/DMSwipeCards/blob/dab78b74e5f844542305c9b55b8ee583eec65b94/DMSwipeCards/Classes/DMSwipeCard.swift#L39

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

dsmailes commented 6 years ago

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

bachonk commented 6 years ago

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