0
let handler = #selector(FaceView.changeScale(byReactingTo:))

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

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • 1
    Possible duplicate of [How can I deal with @objc inference deprecation with #selector() in Swift 4?](https://stackoverflow.com/questions/44390378/how-can-i-deal-with-objc-inference-deprecation-with-selector-in-swift-4) – Hamish Oct 23 '17 at 07:48
  • This is not the same issue. The method, changeScale(byReactingTo:) has been crossed out in the intellisense. –  Oct 23 '17 at 11:02
  • From which pod/framework this `FaceView` class is coming from? – Paulo Mattos Oct 23 '17 at 11:13
  • 1
    @DroidGuy You need to show us more context then; what defines the method `changeScale(byReactingTo:)`, and can you edit it? If not, you probably just want to use an `@objc` thunk that then forwards onto `changeScale(byReactingTo:)`. – Hamish Oct 23 '17 at 11:25
  • Sorry about not being more detailed. FaceView is simply a UIView Cocoa Touch Class. –  Oct 24 '17 at 08:51

0 Answers0