From 4e1cde192211c7461f7136501c01a723e68cb383 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 10 Apr 2024 14:58:32 -0500 Subject: [PATCH] fixed bug in attributed string creation Signed-off-by: Matt Bruce --- VDS/Extensions/NSAttributedString.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/VDS/Extensions/NSAttributedString.swift b/VDS/Extensions/NSAttributedString.swift index 4f758762..6d168182 100644 --- a/VDS/Extensions/NSAttributedString.swift +++ b/VDS/Extensions/NSAttributedString.swift @@ -68,9 +68,7 @@ extension NSMutableAttributedString { .paragraphStyle: paragraph] //set letterSpacing - if textStyle.letterSpacing > 0.0 { - attributes[.kern] = textStyle.letterSpacing - } + attributes[.kern] = textStyle.letterSpacing return NSMutableAttributedString(string: text, attributes: attributes)