ios-jsc
ios-jsc copied to clipboard
Unable to return the correct metadata for a Swift item returned by a method
If we have something like
- (id)test {
return [[BubbleChartData alloc] init];
}
where BubbleChartData is a Swift class exposed to Objective-C, the bridge would try to wrap the result object but would fail and fallback to NSObject. The issue occurs because the class name that is searched in the metadata is prefixed with the module name. In this case it would be Charts.BubbleChartData and since the metadata contains the class with BubbleChartData name it would fail to retrieve it.