Skip to content

Commit

Permalink
Can now use animation's duration directly
Browse files Browse the repository at this point in the history
  • Loading branch information
PimCoumans committed Jun 14, 2024
1 parent 0b26348 commit ad6a919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AnimationPlanner/RunningSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ extension RunningSequence {
}

remainingAnimations = Array(impendingAnimations.dropFirst())
let duration = (animation as? Animatable)?.duration ?? 0
let duration = animation.duration
let completionDuration = duration + leadingDelay

let startTime = CACurrentMediaTime()
Expand Down

0 comments on commit ad6a919

Please sign in to comment.