From fb4a473f42b3f346aef1d42d092359113126ae9c Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 8 May 2023 14:46:49 -0500 Subject: [PATCH] fixed animation bug in checkbox Signed-off-by: Matt Bruce --- VDS/Components/Checkbox/Checkbox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/Checkbox/Checkbox.swift b/VDS/Components/Checkbox/Checkbox.swift index b3430948..630b97ce 100644 --- a/VDS/Components/Checkbox/Checkbox.swift +++ b/VDS/Components/Checkbox/Checkbox.swift @@ -386,7 +386,7 @@ open class Checkbox: Control, Errorable, Changeable { shapeLayer?.removeAllAnimations() - if isAnimated { + if isAnimated && !disabled { let animateStrokeEnd = CABasicAnimation(keyPath: "strokeEnd") animateStrokeEnd.timingFunction = CAMediaTimingFunction(name: .linear) animateStrokeEnd.duration = 0.3