jazzy
jazzy copied to clipboard
objc method produces multiple methods in generated swift interface but jazzy ignores some of them
Example:
NS_ASSUME_NONNULL_BEGIN
typedef void(^SomeCompletion)(NSString * _Nullable str);
@interface SomeClass: NSObject
- (void)loadTokenWithCompletionHandler:(SomeCompletion)completionHandler;
@end
NS_ASSUME_NONNULL_END
Generated swift file:
public typealias SomeCompletion = (String?) -> Void
open class SomeClass : NSObject {
open func loadToken(completionHandler: @escaping SomeCompletion)
open func loadToken() async -> String?
}
Generated documentation contains description of open func loadToken() async -> String?
only which is even less intuitive.
This is a Swift issue -- they give both methods the same 'unique' USR. It might be possible to work around in sourcekitten.