From cf6db73acbdf05cfa45789725c1f3e6a60cd2d22 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Fri, 3 Apr 2020 11:28:05 -0400 Subject: [PATCH] comments --- MVMCoreUI/Styles/Styler.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MVMCoreUI/Styles/Styler.swift b/MVMCoreUI/Styles/Styler.swift index 24a1d94c..2815873b 100644 --- a/MVMCoreUI/Styles/Styler.swift +++ b/MVMCoreUI/Styles/Styler.swift @@ -38,6 +38,7 @@ open class Styler { case B3 case B20 + /// Returns the font size of the current enum case. public func pointSize() -> CGFloat { switch self { case .H1: @@ -82,6 +83,7 @@ open class Styler { } } + /// Determines if the selected font case is bold or regular. public func isBold() -> Bool { switch self { @@ -111,6 +113,7 @@ open class Styler { } } + /// Determines if the current enum is a legacy or modern font. public func isLegacyFont() -> Bool { switch self { @@ -140,6 +143,7 @@ open class Styler { } } + /// Returns the font based on the declared enum case. public func getFont(_ genericScaling: Bool = true) -> UIFont? { let size = genericScaling ? sizeFontGeneric(forCurrentDevice: pointSize()) : pointSize()