Merge branch 'develop' into feature/swiftified_textField
This commit is contained in:
commit
5e28b0bdc5
@ -243,8 +243,12 @@ public typealias ActionBlock = () -> ()
|
|||||||
|
|
||||||
if let fontStyle = json?.optionalStringForKey("fontStyle") {
|
if let fontStyle = json?.optionalStringForKey("fontStyle") {
|
||||||
MFStyler.styleLabel(label, withStyle: fontStyle, genericScaling: mvmLabel == nil)
|
MFStyler.styleLabel(label, withStyle: fontStyle, genericScaling: mvmLabel == nil)
|
||||||
|
mvmLabel?.standardFontSize = label.font.pointSize
|
||||||
} else {
|
} else {
|
||||||
let fontSize = json?["fontSize"] as? CGFloat
|
let fontSize = json?["fontSize"] as? CGFloat
|
||||||
|
if let fontSize = fontSize {
|
||||||
|
mvmLabel?.standardFontSize = fontSize
|
||||||
|
}
|
||||||
|
|
||||||
if let fontName = json?.optionalStringForKey("fontName") {
|
if let fontName = json?.optionalStringForKey("fontName") {
|
||||||
label.font = MFFonts.mfFont(withName: fontName, size: fontSize ?? mvmLabel?.standardFontSize ?? label.font.pointSize)
|
label.font = MFFonts.mfFont(withName: fontName, size: fontSize ?? mvmLabel?.standardFontSize ?? label.font.pointSize)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user