objc method produces multiple methods in generated swift interface but jazzy ignores some of them
Author: gerchicovyCreated May 30, 2022Updated May 30, 2022
Labelsbugsourcekitten
Example:
NS_ASSUME_NONNULL_BEGIN
typedef void(^SomeCompletion)(NSString * _Nullable str);
@interface SomeClass: NSObject
- (void)loadTokenWithCompletionHandler:(SomeCompletion)completionHandler;
@end
NS_ASSUME_NONNULL_ENDGenerated 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.
Source: realm/jazzy