From b0cbd2dd599b72018be56df3ade1313a7d4f07c7 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Wed, 17 Feb 2016 13:40:00 -0800 Subject: [PATCH] Fix background color issue --- AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm b/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm index 12d9de166d..e1fbe38a11 100644 --- a/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm +++ b/AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm @@ -540,15 +540,10 @@ if (shouldApply) { _layer.layerProperty = (layerValueExpr); } else { _pendingVie - (void)setBackgroundColor:(UIColor *)newBackgroundColor { - UIColor *prevBackgroundColor = self.backgroundColor; - _bridge_prologue_write; _setToLayer(backgroundColor, newBackgroundColor.CGColor); - - // Note: This check assumes that the colors are within the same color space. - if (!ASObjectIsEqual(prevBackgroundColor, newBackgroundColor)) { - [self setNeedsDisplay]; - } + // FIXME: Would like to setNeedsDisplay if background color changed, but + // not safe to read old color in background. } - (UIColor *)tintColor