From 876a07650bccd02479344cdac5ea36d1092604d8 Mon Sep 17 00:00:00 2001 From: panxi Date: Tue, 26 Nov 2019 14:16:12 -0500 Subject: [PATCH] remove space --- MVMCoreUI/Atoms/Views/Label.swift | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index f7d476ec..388f40cb 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -234,7 +234,6 @@ public typealias ActionBlock = () -> () textAlignment = .left } - makeWholeViewClickable = labelModel.makeWholeViewClickable ?? false if let backgroundColorHex = labelModel.backgroundColor, !backgroundColorHex.isEmpty { backgroundColor = UIColor.mfGet(forHex: backgroundColorHex) @@ -245,7 +244,7 @@ public typealias ActionBlock = () -> () if let fontStyle = labelModel.fontStyle { MFStyler.styleLabel(self, withStyle: fontStyle) } else { - let fontSize = labelModel.fontSize as? CGFloat + let fontSize = labelModel.fontSize if let fontName = labelModel.fontName { font = MFFonts.mfFont(withName: fontName, size: fontSize ?? font.pointSize) } else if let fontSize = fontSize { @@ -313,11 +312,10 @@ public typealias ActionBlock = () -> () default: continue } + } + originalAttributedString = attributedText + hero = labelModel.hero } - - originalAttributedString = attributedText - hero = labelModel.hero - } } @objc public static func setUILabel(_ label: UILabel?, withJSON json: [AnyHashable: Any]?, delegate: DelegateObject?, additionalData: [AnyHashable: Any]?) {