I am trying to add swift library in my objective c project https://github.com/vimeo/VimeoUpload
I have already added #import “-Swift.h” in my project to subclass VimeoUpload, I am adding @objc in class definition and it gives me following error
Generic subclasses of '@objc' classes cannot have an explicit '@objc' attribute because they are not directly visible from Objective-C.
Objective-C doesn't support Swift Generics, that is why you can't add @objc
directive to your class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With