shapelayer .
This commit is contained in:
parent
7d6289463d
commit
66e45378f4
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user