-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
The following currently doesn't work correctly in space commander:
@implementation Example
- (void)callbackWithSuccess:(dispatch_block_t)success
{
NSError *error = nil;
[self createModelWithMapping:@{
@"key": [NSArray ins_arrayWithCount:5 usingBlock:^__nullable id (NSUInteger idx) {
return nil;
}],
} error:&error];
if (success) {
success();
}
}
@end
Instead, it is formatted as:
@implementation Example
- (void)callbackWithSuccess:(dispatch_block_t)success
{
NSError *error = nil;
[self createModelWithMapping:@{
@"key": [NSArray ins_arrayWithCount:5 usingBlock:^__nullable id (NSUInteger idx) {
return nil;
}],
} error:&error];
if (success) {
success();
}
}
@end
Is there a way to work around this? It seems to be a common use case, for example when defining Mantle value transformers.
Metadata
Metadata
Assignees
Labels
No labels