NatFonts
public struct NatFonts
NatFonts is a struct that has methods to create fonts from the Design System tokens. According with the current Brand in the Design System this properties can change.
Example of usage:
label.font = NatFonts.font(ofSize: .heading6 withWeight: .regular)
Requires
It’s necessary to configure the Design System with a theme or fatalError will be raised.
DesignSystem().configure(with: AvailableTheme)
-
Undocumented
Declaration
Swift
public static func font(ofSize size: Size) -> UIFont
-
Undocumented
Declaration
Swift
public static func font(ofSize size: CGFloat, withWeight weight: UIFont.Weight) -> UIFont
-
Undocumented
Declaration
Swift
public static func font(ofSize size: CGFloat) -> UIFont
-
Undocumented
Declaration
Swift
public static func font(ofSize size: CGFloat, withWeight weight: UIFont.Weight, withFamily family: String) -> UIFont
-
Undocumented
Declaration
Swift
public static func customFont(ofSize fontSize: Size, withStyle customFont: CustomFontStyle) -> UIFont
-
Undocumented
Declaration
Swift
public static func customFont(ofSize fontSize: CGFloat, withStyle customFont: CustomFontStyle) -> UIFont