fixed bug in attributed string creation

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-04-10 14:58:32 -05:00
parent 994feff20e
commit 4e1cde1922

View File

@ -68,9 +68,7 @@ extension NSMutableAttributedString {
.paragraphStyle: paragraph]
//set letterSpacing
if textStyle.letterSpacing > 0.0 {
attributes[.kern] = textStyle.letterSpacing
}
return NSMutableAttributedString(string: text, attributes: attributes)