ios-jsc icon indicating copy to clipboard operation
ios-jsc copied to clipboard

Unable to return the correct metadata for a Swift item returned by a method

Open KristinaKoeva opened this issue 10 years ago • 0 comments

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.

KristinaKoeva avatar Aug 21 '15 14:08 KristinaKoeva