shapelayer .
This commit is contained in:
parent
7d6289463d
commit
66e45378f4
@ -80,9 +80,9 @@ import MVMCore
|
|||||||
/// Width of the check mark.
|
/// Width of the check mark.
|
||||||
public var checkWidth: CGFloat = 2 {
|
public var checkWidth: CGFloat = 2 {
|
||||||
didSet {
|
didSet {
|
||||||
if shapeLayer != nil {
|
if let shapeLayer = shapeLayer {
|
||||||
CATransaction.withDisabledAnimations {
|
CATransaction.withDisabledAnimations {
|
||||||
shapeLayer?.lineWidth = checkWidth
|
shapeLayer.lineWidth = checkWidth
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,9 +91,9 @@ import MVMCore
|
|||||||
/// Color of the check mark.
|
/// Color of the check mark.
|
||||||
public var checkColor: UIColor = .black {
|
public var checkColor: UIColor = .black {
|
||||||
didSet {
|
didSet {
|
||||||
if shapeLayer != nil {
|
if let shapeLayer = shapeLayer {
|
||||||
CATransaction.withDisabledAnimations {
|
CATransaction.withDisabledAnimations {
|
||||||
shapeLayer?.strokeColor = checkColor.cgColor
|
shapeLayer.strokeColor = checkColor.cgColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user