fixed bug in attributed string creation
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
994feff20e
commit
4e1cde1922
@ -68,9 +68,7 @@ extension NSMutableAttributedString {
|
|||||||
.paragraphStyle: paragraph]
|
.paragraphStyle: paragraph]
|
||||||
|
|
||||||
//set letterSpacing
|
//set letterSpacing
|
||||||
if textStyle.letterSpacing > 0.0 {
|
attributes[.kern] = textStyle.letterSpacing
|
||||||
attributes[.kern] = textStyle.letterSpacing
|
|
||||||
}
|
|
||||||
|
|
||||||
return NSMutableAttributedString(string: text, attributes: attributes)
|
return NSMutableAttributedString(string: text, attributes: attributes)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user