From 72f5edb92c936ee47ff9726d733bf92a15c306c8 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 25 Jan 2023 18:19:53 -0600 Subject: [PATCH] fixed bug with underline Signed-off-by: Matt Bruce --- VDS/Components/Label/Attributes/ActionLabelAttribute.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/Label/Attributes/ActionLabelAttribute.swift b/VDS/Components/Label/Attributes/ActionLabelAttribute.swift index dc0f9638..81f4981f 100644 --- a/VDS/Components/Label/Attributes/ActionLabelAttribute.swift +++ b/VDS/Components/Label/Attributes/ActionLabelAttribute.swift @@ -51,7 +51,7 @@ public struct ActionLabelAttribute: ActionLabelAttributeModel { public func setAttribute(on attributedString: NSMutableAttributedString) { if(shouldUnderline){ - attributedString.addAttribute(.underlineStyle, value: NSUnderlineStyle.single, range: range) + UnderlineLabelAttribute(location: location, length: length).setAttribute(on: attributedString) } } }