From c32e2f838353499007ca273c176ed29b23c3da9a Mon Sep 17 00:00:00 2001 From: Eric Jensen Date: Mon, 20 Jun 2016 20:18:44 -0700 Subject: [PATCH] If the animated image is ready, start animating it as soon as it's set (#1724) --- AsyncDisplayKit/ASImageNode+AnimatedImage.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AsyncDisplayKit/ASImageNode+AnimatedImage.mm b/AsyncDisplayKit/ASImageNode+AnimatedImage.mm index 7df743c3ff..e51305a298 100644 --- a/AsyncDisplayKit/ASImageNode+AnimatedImage.mm +++ b/AsyncDisplayKit/ASImageNode+AnimatedImage.mm @@ -45,6 +45,10 @@ NSString *const ASAnimatedImageDefaultRunLoopMode = NSRunLoopCommonModes; }; } + if (animatedImage.playbackReady) { + [self animatedImageFileReady]; + } + animatedImage.playbackReadyCallback = ^{ [weakSelf animatedImageFileReady]; };