qmathe / DropDownMenuKit

UIKit drop down menu, simple yet flexible and written in Swift
Other
303 stars 38 forks source link

Use in Objective-C code? #11

Closed gerchicov-bp closed 5 years ago

gerchicov-bp commented 7 years ago

I have a project which combines both swift and objective-c code. How to import it into objective-C code correctly - it can't find the path?

qmathe commented 7 years ago

Hi,

Sorry for the late reply, I was away for a month or so.

Did you try #import <DropDownMenuKit/DropDownMenu-Swift.h> and similar imports for the other classes from DropDownMenuKit?

I haven't tried it yet though. I'll take a look at it and see if any tweaks is needed on my side.

gerchicov-bp commented 7 years ago

finally I imported this library as sources and edited it instead of cocoapods. The problem is objective C doesn't fully support swift code. For example some public methods should be marked with @objc, some structures/classes are not supported (for example enums with methods)

qmathe commented 7 years ago

As you outline it, to make it compatible with ObjC would require some substantial changes and I'm not sure it's worth investment.

I might give it a try at some point, but it's not a high priority for me currently.