diff --git a/lottie-swift/src/Public/Animation/AnimationView.swift b/lottie-swift/src/Public/Animation/AnimationView.swift index 73126c6bb0..0b071d687d 100644 --- a/lottie-swift/src/Public/Animation/AnimationView.swift +++ b/lottie-swift/src/Public/Animation/AnimationView.swift @@ -809,12 +809,12 @@ final public class AnimationView: LottieView { /// Updates the animation frame. Does not affect any current animations func updateAnimationFrame(_ newFrame: CGFloat) { CATransaction.begin() - CATransaction.setDisableActions(true) - animationLayer?.currentFrame = newFrame - CATransaction.commit() CATransaction.setCompletionBlock { self.animationLayer?.forceDisplayUpdate() } + CATransaction.setDisableActions(true) + animationLayer?.currentFrame = newFrame + CATransaction.commit() } @objc override func animationWillMoveToBackground() {