missing color for enable state

This commit is contained in:
Kevin G Christiano 2020-09-11 10:34:38 -04:00
parent dc8e580f87
commit 2b4469db63

View File

@ -140,7 +140,7 @@ open class CaretView: View {
caretPath.addLine(to: CGPoint(x: frame.size.width - inset, y: frame.size.height - inset))
}
enabledColor.setStroke()
_ = isEnabled ? enabledColor.setStroke() : disabledColor.setStroke()
caretPath.stroke()
}
@ -160,6 +160,7 @@ open class CaretView: View {
isHidden = false
backgroundColor = .clear
enabledColor = .mvmBlack
disabledColor = .mvmCoolGray3
}
/// Ensure you have defined a CaretSize with Orientation before calling.