[Yoga] replace float with YGFloat

- pass all unit tests
This commit is contained in:
vvveiii
2020-08-15 14:52:10 +08:00
parent b498714d48
commit 029b877d2e
15 changed files with 446 additions and 424 deletions

View File

@@ -265,16 +265,28 @@
subview1.yoga.flexGrow = 1;
[container addSubview:subview1];
UIView *leafView = [[UIView alloc] init];
leafView.yoga.isEnabled = YES;
[subview1 addSubview:leafView];
UIView* subview2 = [[UIView alloc] initWithFrame:CGRectZero];
subview2.yoga.isEnabled = YES;
subview2.yoga.flexGrow = 1;
[container addSubview:subview2];
leafView = [[UIView alloc] init];
leafView.yoga.isEnabled = YES;
[subview2 addSubview:leafView];
UIView* subview3 = [[UIView alloc] initWithFrame:CGRectZero];
subview3.yoga.isEnabled = YES;
subview3.yoga.flexGrow = 1;
[container addSubview:subview3];
leafView = [[UIView alloc] init];
leafView.yoga.isEnabled = YES;
[subview3 addSubview:leafView];
[container.yoga applyLayoutPreservingOrigin:YES];
XCTAssertEqualWithAccuracy(