From 1239ba8216663628041046a4142009300b461c29 Mon Sep 17 00:00:00 2001 From: Pim Date: Wed, 17 Apr 2024 15:55:33 +0200 Subject: [PATCH] Only call stopHandler when actually running --- Sources/AnimationPlanner/Animations/Animate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AnimationPlanner/Animations/Animate.swift b/Sources/AnimationPlanner/Animations/Animate.swift index 129adc2..f22d354 100644 --- a/Sources/AnimationPlanner/Animations/Animate.swift +++ b/Sources/AnimationPlanner/Animations/Animate.swift @@ -88,8 +88,8 @@ extension Animate: PerformsAnimations { ], animations: changes ) + stopper.stopHandler?() } - stopper.stopHandler?() stopper.isStopped = true } }