Merge branch 'bugfix/missing_color_enableable' into 'develop'

Missing color for enable state

See merge request BPHV_MIPS/mvm_core_ui!586
This commit is contained in:
Pfeil, Scott Robert 2020-09-11 12:19:41 -04:00
commit abdb0d7e11

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.