fixed animation bug in checkbox
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
bd902434ef
commit
fb4a473f42
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user