From 4d68bfb2d296d8a92c3293c8f8e4f6fc63d450ff Mon Sep 17 00:00:00 2001 From: Evandro Date: Sat, 21 Nov 2020 08:19:36 +0800 Subject: [PATCH] [CHORE] Position layer imageProvider set with AnimationView imageProvider didSet --- lottie-swift/src/Public/Animation/AnimationView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lottie-swift/src/Public/Animation/AnimationView.swift b/lottie-swift/src/Public/Animation/AnimationView.swift index 9f7ad507e6..73c4fdb24f 100644 --- a/lottie-swift/src/Public/Animation/AnimationView.swift +++ b/lottie-swift/src/Public/Animation/AnimationView.swift @@ -91,6 +91,7 @@ final public class AnimationView: LottieView { */ public var imageProvider: AnimationImageProvider { didSet { + animationLayer?.imageProvider = imageProvider reloadImages() } } @@ -402,7 +403,6 @@ final public class AnimationView: LottieView { /// Reloads the images supplied to the animation from the `imageProvider` public func reloadImages() { - animationLayer?.imageProvider = imageProvider animationLayer?.reloadImages() }