refactored to remove defaults
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
ee8ce73208
commit
d92b9c0c5d
@ -105,7 +105,7 @@ open class TextLinkCaret: Control {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
open override func updateView() {
|
open override func updateView() {
|
||||||
|
|
||||||
var updatedText = text ?? ""
|
let updatedText = text ?? ""
|
||||||
|
|
||||||
caretView.surface = surface
|
caretView.surface = surface
|
||||||
caretView.disabled = disabled
|
caretView.disabled = disabled
|
||||||
@ -115,9 +115,7 @@ open class TextLinkCaret: Control {
|
|||||||
let location = iconPosition == .right ? updatedText.count + 1 : 0
|
let location = iconPosition == .right ? updatedText.count + 1 : 0
|
||||||
let textColor = label.textColorConfiguration.getColor(self)
|
let textColor = label.textColorConfiguration.getColor(self)
|
||||||
let imageAttribute = ImageLabelAttribute(location: location,
|
let imageAttribute = ImageLabelAttribute(location: location,
|
||||||
length: 1,
|
|
||||||
image: image,
|
image: image,
|
||||||
frame: .init(x: 0, y: 0, width: image.size.width, height: image.size.height),
|
|
||||||
tintColor: textColor)
|
tintColor: textColor)
|
||||||
label.surface = surface
|
label.surface = surface
|
||||||
label.disabled = disabled
|
label.disabled = disabled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user