From d92b9c0c5da5d37eba7ee975fa220a142b4c8c61 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 3 Nov 2022 10:44:46 -0500 Subject: [PATCH] refactored to remove defaults Signed-off-by: Matt Bruce --- VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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