fixed bug with underline

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-01-25 18:19:53 -06:00
parent 5e595e9ece
commit 72f5edb92c

View File

@ -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)
}
}
}