Reputation: 2670
I'm adding new functionality to an app written in Objective-C with Swift. The new features require a data base so I'm using Realm-Swift. The problem is that the models that have relationships e.g. dynamic var points = List<Point>()
don't translate to Objective-C on the {Project}-Swift.h
file. I get the error: Type name requires a specifier or qualifier
on the line @property (nonatomic) /* List<Point> */ points;
Does anybody know a workaround for this problem?
Upvotes: 1
Views: 662
Reputation: 4120
If you need Objective-C interop, your best bet is to continue using Realm Objective-c. Since List
is a generic type, it can't be represented in ObjC at all.
Upvotes: 2