[YogaKit] support macOS, tvOS, Carthage; auto apply layout like AutoLayout. #1026

Closed
cntrump wants to merge 38 commits from yogakit_autoapplylayout_patch into main
69 changed files with 3191 additions and 131 deletions
Showing only changes of commit 7c940ac51f - Show all commits

View File

@@ -488,8 +488,7 @@ static void YGRemoveAllChildren(const YGNodeRef node) {
static CGFloat YGRoundPixelValue(CGFloat value) {
CGFloat scale = YGScaleFactor();
return ceil(value * scale) / scale; // Pixel-align
return round(value * scale) / scale;
}
static void YGApplyLayoutToViewHierarchy(UIView* view, BOOL preserveOrigin) {