From 038bf0ee330a3a13c1053b9f215353d78c8ccea7 Mon Sep 17 00:00:00 2001 From: Cal Stephens Date: Thu, 14 Sep 2023 12:14:12 -0700 Subject: [PATCH] Fix issue where LottieAnimationLayer.pause() didn't update currentPlaybackMode --- Sources/Public/Animation/LottieAnimationLayer.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Public/Animation/LottieAnimationLayer.swift b/Sources/Public/Animation/LottieAnimationLayer.swift index a88a812e1a..1cb5a3b237 100644 --- a/Sources/Public/Animation/LottieAnimationLayer.swift +++ b/Sources/Public/Animation/LottieAnimationLayer.swift @@ -358,6 +358,7 @@ public class LottieAnimationLayer: CALayer { /// The completion closure will be called with `false` open func pause() { removeCurrentAnimation() + currentPlaybackMode = .pause } /// Applies the given `LottiePlaybackMode` to this layer.