I have the following classes contained in Geography.framework (Swift framework project):
public class Contact : NSObject { public static let Table: String = "contacts" public class Fields : NSObject { public static let Id: String = "_id" public static let Name: String = "name" static let rawId: String = "rawId" } } public class Country : NSObject { public class Fields : NSObject { public static let Id: String = "_id" public static let Prefix: String = "prefix" static let rawId: String = "rawId" } }
In my quick application using this structure, everything runs smoothly:
import geography func setFields() { var contactName:String = Contact.Fields.Name var countryPrefix:String = Country.Fields.Prefix var contactsTable: String = Country.Table }
Well, if I use the same Geography.framework in ObjectiveC, I see the Contact and Country classes, but the nested Fields classes are not visible. Also, the value of Contact.Table is not displayed.
What do I need to do to have the same library structure and library usage in ObjectiveC?
Thanks,
source share