Skip to content

Commit

Permalink
Address feedback for startAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Kiley committed Sep 8, 2021
1 parent 423623e commit 50e7f16
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,14 @@ public class BasicCameraAnimator: NSObject, CameraAnimator, CameraAnimatorInterf

/// Starts the animation if this animator is in `inactive` state. Also used to resume a "paused" animation.
public func startAnimation() {
storedAnimator = self
switch internalState {
case .initial:
storedAnimator = self
createTransition()
propertyAnimator.startAnimation()
case .inProgress:
storedAnimator = self
propertyAnimator.startAnimation()
case .final:
storedAnimator = self
fatalError("Attempt to restart an animation that has already completed.")
}
}
Expand Down

0 comments on commit 50e7f16

Please sign in to comment.