[YogaKit] support macOS.
This commit is contained in:
@@ -18,14 +18,10 @@
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
||||
CGSize containerSize = self.view.bounds.size;
|
||||
|
||||
UIView *root = self.view;
|
||||
root.backgroundColor = UIColor.whiteColor;
|
||||
[root configureLayoutWithBlock:^(YGLayout * _Nonnull layout) {
|
||||
layout.isEnabled = YES;
|
||||
layout.width = YGPointValue(containerSize.width);
|
||||
layout.height = YGPointValue(containerSize.height);
|
||||
layout.alignItems = YGAlignCenter;
|
||||
layout.justifyContent = YGJustifyCenter;
|
||||
}];
|
||||
|
Reference in New Issue
Block a user