I'm writing some Swift code that i'd like to use in Objective-C. The headers are all generated automatically but when using closures (that become blocks in objective-c), the variable names are missing.
For Example:
@objc public func doSomething(success: (result: String) ->())
becomes
-(void)doSomething:(NSString * _Nonnull)success;
Where i would have expected it to be:
-(void)doSomething:(NSString * result)success;
Is this an Xcode bug or is there a way to specify what the variable should be named?