diff --git a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift index daed1a42..7be3a156 100644 --- a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift +++ b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift @@ -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