removed redundant check.
This commit is contained in:
parent
6114bbbf92
commit
503bbc4605
@ -31,10 +31,7 @@ public typealias CoreObjectActionLoadPresentDelegate = MVMCoreActionDelegateProt
|
||||
let mutableAttributedText = NSMutableAttributedString(attributedString: newAttribText)
|
||||
let paragraphStyle = NSMutableParagraphStyle()
|
||||
paragraphStyle.lineSpacing = CGFloat(LabelWithInternalButtonLineSpace)
|
||||
|
||||
if newAttribText.length > 0 {
|
||||
mutableAttributedText.addAttribute(.paragraphStyle, value: paragraphStyle, range: NSRange(location: 0, length: newAttribText.length))
|
||||
}
|
||||
mutableAttributedText.addAttribute(.paragraphStyle, value: paragraphStyle, range: NSRange(location: 0, length: newAttribText.length))
|
||||
label?.attributedText = mutableAttributedText
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user