I've created a framework in objC and I'm creating an extension for a class in a Swift file in the main project. I've annotated the class (in the framework) as follows:
@interface GerberStepAndRepeat : GerberElement <GerberBlock>
@property (nonatomic,strong,nonnull) NSMutableArray<GerberLevel *> *levels;
@end
In Swift I access the levels property as follows:
extension GerberStepAndRepeat {
func flatten() {
for level in self.levels {
}
}
}
The levels property is then typed as NSMutableArray and the level variable is typed as Element.
Why doesn't it show the types that I've specified in the framework? Are there any settings I need to tweak to make this work?