Ensure that the uncommon __unloadNode codepath does not unintentionally trigger node removal.

This commit is contained in:
Scott Goodson
2015-12-29 23:11:33 -08:00
parent 95e28d6c11
commit df3ce787f7
4 changed files with 31 additions and 3 deletions

View File

@@ -798,8 +798,13 @@ static UIColor *defaultTintColor = nil;
view.accessibilityIdentifier = accessibilityIdentifier;
}
// FIXME: Make this more efficient by tracking which properties are set rather than reading everything.
+ (_ASPendingState *)pendingViewStateFromLayer:(CALayer *)layer
{
if (!layer) {
return nil;
}
_ASPendingState *pendingState = [[_ASPendingState alloc] init];
pendingState.anchorPoint = layer.anchorPoint;
@@ -877,8 +882,13 @@ static UIColor *defaultTintColor = nil;
return pendingState;
}
// FIXME: Make this more efficient by tracking which properties are set rather than reading everything.
+ (_ASPendingState *)pendingViewStateFromView:(UIView *)view
{
if (!view) {
return nil;
}
_ASPendingState *pendingState = [[_ASPendingState alloc] init];
CALayer *layer = view.layer;