refactored to remove defaults

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-11-03 10:44:46 -05:00
parent ee8ce73208
commit d92b9c0c5d

View File

@ -105,7 +105,7 @@ open class TextLinkCaret: Control {
//--------------------------------------------------
open override func updateView() {
var updatedText = text ?? ""
let updatedText = text ?? ""
caretView.surface = surface
caretView.disabled = disabled
@ -115,9 +115,7 @@ open class TextLinkCaret: Control {
let location = iconPosition == .right ? updatedText.count + 1 : 0
let textColor = label.textColorConfiguration.getColor(self)
let imageAttribute = ImageLabelAttribute(location: location,
length: 1,
image: image,
frame: .init(x: 0, y: 0, width: image.size.width, height: image.size.height),
tintColor: textColor)
label.surface = surface
label.disabled = disabled