Skip to content

Commit

Permalink
Fix issue where LottieAnimationLayer.pause() didn't update currentPla…
Browse files Browse the repository at this point in the history
…ybackMode (airbnb#2188)
  • Loading branch information
calda authored and iago849 committed Feb 8, 2024
1 parent a0c713b commit 4ce9543
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Public/Animation/LottieAnimationLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4ce9543

Please sign in to comment.