I have an API
+ (void)getTheThing:(nonnull void (^)(NSString * __nullable thing, NSError * __nullable error))completion;
(Syntax taken from here)
But when go to use it, and take advantage of Xcode's block autocomplete, it autocompletes to this:
[MyAPI getTheThing:^nonnull void(NSString * __nullable, NSError * __nullable) {
<#code#>
}];
Which gives errors for nonnull
being not recognised, the fact there's not argument names etc...
Any idea what's going on? :S Am I declaring it wrong? This stuff is fairly new, and the documentation isn't really complete :/