Olenyov Kirill
01/18/2020, 10:51 AMfun test1(): List<Channel> {
}
fun test2(): MWResponse<List<Channel>> {
}
Where Channel and MWResponse are just data and sealed classes.
In generated obj-c header I see:
- (NSArray<CommonChannel *> *)test1 attribute((swift_name("test1()")));
- (CommonMWResponse<NSArray<CommonChannel *> *> *)test2 attribute((swift_name("test2()")));
Looks good. “List<Channel>” was converted to obj-c “NSArray<Channel>”
But in Swift these methods shown as:
[Channel] test1()
MWResponse<NSArray> test2()
So two questions:
1) Why it has two different “array” types: [] and NSArray?
2) Where is generic type for test2() method? It should be NSArray<Channel> i think..
Is it a problem in objc-swift interop or mpp problem?Artyom Degtyarev [JB]
01/22/2020, 2:34 PMOlenyov Kirill
01/22/2020, 2:35 PMsvyatoslav.scherbina
01/22/2020, 2:38 PMnrobi
01/29/2020, 9:33 AM