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:
parent
c16381ce08
commit
759c6a1d52
@ -20,7 +20,6 @@ extension NSAttributedString {
|
|||||||
|
|
||||||
extension NSMutableAttributedString {
|
extension NSMutableAttributedString {
|
||||||
|
|
||||||
public static var useMinimumLineHeight: Bool = true
|
|
||||||
public static var useScaledLineHeight: Bool = false
|
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 {
|
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
|
//set lineHeight
|
||||||
if textStyle.lineHeight > 0.0 {
|
if textStyle.lineHeight > 0.0 {
|
||||||
if useMinimumLineHeight {
|
paragraph.minimumLineHeight = lineHeight
|
||||||
paragraph.minimumLineHeight = lineHeight
|
|
||||||
}
|
|
||||||
paragraph.maximumLineHeight = lineHeight
|
paragraph.maximumLineHeight = lineHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user