Skip to content

Commit

Permalink
Merge pull request airbnb#1145 from nevil/typo-fix
Browse files Browse the repository at this point in the history
waitingToPlayAimation -> waitingToPlayAnimation
  • Loading branch information
buba447 committed Apr 23, 2020
2 parents da8ecb8 + 3e8d71a commit 1b9acab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lottie-swift/src/Public/Animation/AnimationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,11 @@ final public class AnimationView: LottieView {
}
}

fileprivate var waitingToPlayAimation: Bool = false
fileprivate var waitingToPlayAnimation: Bool = false
fileprivate func updateAnimationForForegroundState() {
if let currentContext = animationContext {
if waitingToPlayAimation {
waitingToPlayAimation = false
if waitingToPlayAnimation {
waitingToPlayAnimation = false
self.addNewAnimationForContext(currentContext)
} else if backgroundBehavior == .pauseAndRestore {
/// Restore animation from saved state
Expand Down Expand Up @@ -913,7 +913,7 @@ final public class AnimationView: LottieView {

self.animationContext = animationContext

guard self.window != nil else { waitingToPlayAimation = true; return }
guard self.window != nil else { waitingToPlayAnimation = true; return }

animationID = animationID + 1
activeAnimationName = AnimationView.animationName + String(animationID)
Expand Down

0 comments on commit 1b9acab

Please sign in to comment.