I am importing swift framework into objective-c project like this:
@import MyFramework;
The problem is that only some of the classes are recognized by the class i am importing the framework.
The class which is recognized:
public class RecognizedClass:UIViewController, WKNavigationDelegate, WKScriptMessageHandle
{ ... }
The class which is not:
public class VeediUtils
{ ... }
They are both public so why the first is recognized in the workspace and the other not?
Also i see in the header file MyFramework-Swift.h that a class
@interface RecognizedClass : UIViewController <WKNavigationDelegate, WKScriptMessageHandler>
Appear while the other dont
Why is that?
Also to point that this same procedure work when i am importing swift framework to swift project
To access a swift class in objc, that is not inherited from NSObject you need to:
@objc public class VeediUtils
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html