From 8809f1e701b3c541f47ed97eb9972808f0f9c46d Mon Sep 17 00:00:00 2001 From: Cal Stephens Date: Fri, 23 Aug 2024 15:46:31 -0700 Subject: [PATCH] Fix frame conversion in LottieAnimationLayer.pause(at: .marker(...)) --- Sources/Public/Animation/LottieAnimationLayer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Public/Animation/LottieAnimationLayer.swift b/Sources/Public/Animation/LottieAnimationLayer.swift index e686665995..df369974fc 100644 --- a/Sources/Public/Animation/LottieAnimationLayer.swift +++ b/Sources/Public/Animation/LottieAnimationLayer.swift @@ -381,9 +381,9 @@ public class LottieAnimationLayer: CALayer { switch position { case .start: - currentTime = from.frameTime + currentFrame = from.frameTime case .end: - currentTime = from.frameTime + from.durationFrameTime + currentFrame = from.frameTime + from.durationFrameTime } }