Add extended configuration method with self as argument.

This commit is contained in:
Anton Sergeev
2019-10-10 10:01:07 +03:00
parent 293b657aef
commit d34631e508
3 changed files with 37 additions and 0 deletions

View File

@@ -35,4 +35,11 @@ static const void *kYGYogaAssociatedKey = &kYGYogaAssociatedKey;
}
}
- (void)configureLayoutWithContainerBlock:(YGLayoutContainerConfigurationBlock)block
{
if (block != nil) {
block(self.yoga, self);
}
}
@end