small change
This commit is contained in:
parent
1758192edf
commit
c26eea8cdd
@ -81,7 +81,7 @@ open class Styler {
|
|||||||
public func getFont(_ genericScaling: Bool = true) -> UIFont? {
|
public func getFont(_ genericScaling: Bool = true) -> UIFont? {
|
||||||
|
|
||||||
let size = genericScaling ? sizeFontGeneric(forCurrentDevice: pointSize()) : pointSize()
|
let size = genericScaling ? sizeFontGeneric(forCurrentDevice: pointSize()) : pointSize()
|
||||||
return getMVA3FontSize(size, bold: isBold())
|
return getMVA3FontSize(size, isBold: isBold())
|
||||||
}
|
}
|
||||||
|
|
||||||
public func styleLabel(_ label: UILabel, genericScaling: Bool = true) {
|
public func styleLabel(_ label: UILabel, genericScaling: Bool = true) {
|
||||||
@ -130,7 +130,7 @@ open class Styler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open class func getMVA3FontSize(_ size: CGFloat, bold isBold: Bool) -> UIFont {
|
open class func getMVA3FontSize(_ size: CGFloat, isBold: Bool) -> UIFont {
|
||||||
|
|
||||||
if isBold {
|
if isBold {
|
||||||
return size >= 15 ? MFFonts.mfFontDSBold(size) : MFFonts.mfFontTXBold(size)
|
return size >= 15 ? MFFonts.mfFontDSBold(size) : MFFonts.mfFontTXBold(size)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user