Reputation: 375
I created a swift framework and now i want to import it in my application.
I did import BiometricAccessControl
in my ViewController but xcode not recognizes my classes.
How can i solved it?
Thanks
Upvotes: 2
Views: 206
Reputation: 14857
Maybe it is a problem of access control policy. By Default, your type(class,enum,struct) and their member(property,subscript,method)'s access control level is internal,which is visible inside your framework,if you want to expose it(namely,API) to other modules, you could try to add public modifier to your class or their member.For Example:
public class MySwiftComponent {
public var publicInt:Int?
private var privateInt:Int?
internal var internalInt:Int?
}
Totally, there are three access level : public ,internal and private (internal is default)
Upvotes: 2