UIFont
extension UIFont
-
Declaration
Swift
public static func scaledFont(_ font: UIFont, textStyle: UIFont.TextStyle) -> UIFont
Parameters
font
The font to be scaled. Do not specify a font that has already been scaled; doing so results in an exception
textStyle
Constants that describe the preferred styles for fonts. Please, find additional information here
Return Value
A scaled font for a specific text style.
-
Declaration
Swift
extension UIFont.TextStyle