You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
// If you passed one of the constants (this is just an optimization to avoid string comparison)
130
-
for (int i=0; i < ARRAY_COUNT(UIContentModeCAGravityLUT); i++) {
131
-
if (UIContentModeCAGravityLUT[i].string == contentsGravity) {
132
-
return UIContentModeCAGravityLUT[i].contentMode;
133
-
}
134
-
}
135
-
// If you passed something isEqualToString: to one of the constants
136
124
for (int i=0; i < ARRAY_COUNT(UIContentModeCAGravityLUT); i++) {
137
-
if ([UIContentModeCAGravityLUT[i].stringisEqualToString:contentsGravity]) {
125
+
if (ASObjectIsEqual(UIContentModeCAGravityLUT[i].string, contentsGravity)) {
138
126
return UIContentModeCAGravityLUT[i].contentMode;
139
127
}
140
128
}
129
+
141
130
ASDisplayNodeCAssert(contentsGravity, @"Encountered an unknown contentsGravity \"%@\". Is this a new version of iOS?", contentsGravity);
142
131
ASDisplayNodeCAssert(!contentsGravity, @"You passed nil to ASDisplayNodeUIContentModeFromCAContentsGravity. We're falling back to resize, but this is probably a bug.");
0 commit comments