I have written a library in Swift and I wasn\'t able to import it to my current project, written in Objective-C.
Are there any ways to import it?
#i
If you have a project created in Swift 4 and then added Objective-C files, do it like this:
@objcMembers public class MyModel: NSObject { var someFlag = false func doSomething() { print("doing something") } }
Reference: https://useyourloaf.com/blog/objc-warnings-upgrading-to-swift-4/