I have an API
+ (void)getTheThing:(nonnull void (^)(NSString * __nullable thing, NSError * __nullable error))completion;
(Syntax taken from here )
But when you go to use it and use the autocomplete of the Xcode block, it automatically completes this:
[MyAPI getTheThing:^nonnull void(NSString * __nullable, NSError * __nullable) {
<#code#>
}];
Which gives errors for nonnullthat are not recognized, the fact of the absence of argument names, etc ....
Any idea what is going on ?: S I declare this to be wrong? This material is fairly new, and the documentation is not really complete: /
source
share