From 66e45378f461e753f678ff853aca24de577fd659 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Mon, 7 Oct 2019 16:33:39 -0400 Subject: [PATCH] shapelayer . --- MVMCoreUI/Atoms/Views/Checkbox.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Checkbox.swift b/MVMCoreUI/Atoms/Views/Checkbox.swift index 6253b30d..6f308651 100644 --- a/MVMCoreUI/Atoms/Views/Checkbox.swift +++ b/MVMCoreUI/Atoms/Views/Checkbox.swift @@ -80,9 +80,9 @@ import MVMCore /// Width of the check mark. public var checkWidth: CGFloat = 2 { didSet { - if shapeLayer != nil { + if let shapeLayer = shapeLayer { CATransaction.withDisabledAnimations { - shapeLayer?.lineWidth = checkWidth + shapeLayer.lineWidth = checkWidth } } } @@ -91,9 +91,9 @@ import MVMCore /// Color of the check mark. public var checkColor: UIColor = .black { didSet { - if shapeLayer != nil { + if let shapeLayer = shapeLayer { CATransaction.withDisabledAnimations { - shapeLayer?.strokeColor = checkColor.cgColor + shapeLayer.strokeColor = checkColor.cgColor } } }