remove space
This commit is contained in:
parent
1bbad6ca15
commit
876a07650b
@ -234,7 +234,6 @@ public typealias ActionBlock = () -> ()
|
|||||||
textAlignment = .left
|
textAlignment = .left
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
makeWholeViewClickable = labelModel.makeWholeViewClickable ?? false
|
makeWholeViewClickable = labelModel.makeWholeViewClickable ?? false
|
||||||
if let backgroundColorHex = labelModel.backgroundColor, !backgroundColorHex.isEmpty {
|
if let backgroundColorHex = labelModel.backgroundColor, !backgroundColorHex.isEmpty {
|
||||||
backgroundColor = UIColor.mfGet(forHex: backgroundColorHex)
|
backgroundColor = UIColor.mfGet(forHex: backgroundColorHex)
|
||||||
@ -245,7 +244,7 @@ public typealias ActionBlock = () -> ()
|
|||||||
if let fontStyle = labelModel.fontStyle {
|
if let fontStyle = labelModel.fontStyle {
|
||||||
MFStyler.styleLabel(self, withStyle: fontStyle)
|
MFStyler.styleLabel(self, withStyle: fontStyle)
|
||||||
} else {
|
} else {
|
||||||
let fontSize = labelModel.fontSize as? CGFloat
|
let fontSize = labelModel.fontSize
|
||||||
if let fontName = labelModel.fontName {
|
if let fontName = labelModel.fontName {
|
||||||
font = MFFonts.mfFont(withName: fontName, size: fontSize ?? font.pointSize)
|
font = MFFonts.mfFont(withName: fontName, size: fontSize ?? font.pointSize)
|
||||||
} else if let fontSize = fontSize {
|
} else if let fontSize = fontSize {
|
||||||
@ -313,11 +312,10 @@ public typealias ActionBlock = () -> ()
|
|||||||
default:
|
default:
|
||||||
continue
|
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]?) {
|
@objc public static func setUILabel(_ label: UILabel?, withJSON json: [AnyHashable: Any]?, delegate: DelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user