From 21953c97efb787a78eb4bccdd8daef56514906cd Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Wed, 8 Mar 2017 14:02:12 +0000 Subject: [PATCH] -actionForLayer:forKey: of ASDisplayNode should return nil to avoid the node being animated by CA when it's being moved from one supernode to another (#3146) This reverts commit 1d21c0bd5545741f284e553d7ed003c69fa6897c introduced in #3063. --- Source/ASDisplayNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ASDisplayNode.mm b/Source/ASDisplayNode.mm index 82761471c3..75860514b5 100644 --- a/Source/ASDisplayNode.mm +++ b/Source/ASDisplayNode.mm @@ -2312,7 +2312,7 @@ static const char *ASDisplayNodeDrawingPriorityKey = "ASDrawingPriority"; } ASDisplayNodeAssert(_flags.layerBacked, @"We shouldn't get called back here unless we are layer-backed."); - return nil; + return (id)kCFNull; } #pragma mark - Error Handling