removed var to set useMinimumLineHeight, this is now a required setting

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-07-24 10:56:17 -05:00
parent c16381ce08
commit 759c6a1d52

View File

@ -20,7 +20,6 @@ extension NSAttributedString {
extension NSMutableAttributedString {
public static var useMinimumLineHeight: Bool = true
public static var useScaledLineHeight: Bool = false
public static func mutableText(for text: String, textStyle: TextStyle, useScaledFont: Bool = true, textColor: UIColor, alignment: NSTextAlignment = .left, lineBreakMode: NSLineBreakMode) -> NSMutableAttributedString {
@ -44,9 +43,7 @@ extension NSMutableAttributedString {
//set lineHeight
if textStyle.lineHeight > 0.0 {
if useMinimumLineHeight {
paragraph.minimumLineHeight = lineHeight
}
paragraph.maximumLineHeight = lineHeight
}