From c1a5219b03be6ece37bff2d699e248c96367389a Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Thu, 27 Apr 2023 13:53:45 -0700 Subject: [PATCH] Move YogaKit to YGErrataClassic (#1261) Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1261 YogaKit integrates Yoga with UIKit as a higher level framework. It does not expose config setting to users. We set YGErrataClassic for now to prioritize compatibility instead of conformance (YogaKit is relatively used in fbsource as well). I'm also tempted to remove the usage of ExperimentalWebFlexBasis since last I heard rozelle thought it was generally broken, but I am a bit afraid to if it has been enabled so long, and is used in many cases in Meta. Reviewed By: yungsters Differential Revision: D45298803 fbshipit-source-id: 92f72148fafbdaffba4589c18c8b46591ca7c364 --- YogaKit/Source/YGLayout.m | 1 + 1 file changed, 1 insertion(+) diff --git a/YogaKit/Source/YGLayout.m b/YogaKit/Source/YGLayout.m index 1627a74f..638a81da 100644 --- a/YogaKit/Source/YGLayout.m +++ b/YogaKit/Source/YGLayout.m @@ -175,6 +175,7 @@ static YGConfigRef globalConfig; globalConfig = YGConfigNew(); YGConfigSetExperimentalFeatureEnabled( globalConfig, YGExperimentalFeatureWebFlexBasis, true); + YGConfigSetErrata(globalConfig, YGErrataClassic); YGConfigSetPointScaleFactor(globalConfig, [UIScreen mainScreen].scale); }