I work with both Objective C / Swift class in my project and I have this problem :
I try to init an NSMutableArray which contains objects of type XXXIndicator in Swift according to my objective C method which is :
- (void)myMethod : (NSMutableArray<XXXIndicator*> *) indicatorsArray;
I create my Swift mutable array like that :
var indicatorsArrayCABarDatasource = [XXXIndicator]()
It works fine for now.
And when I call my objective-c method (which has been generated to a swift method by my bridging class), I get the following error :
"Cannot convert value of type [XXXIndicator] to expected argument type "NSMutableArray!"
How I call my method :
myView.myMethod(indicatorsArrayCABarDatasource)
Thanks for help.