DynamicTypeFont
public protocol DynamicTypeFont : SystemFont
Dynamically scalable font which supports built in textstyle - UIFont.TextStyle.
-
preferredFont(forTextStyle:)Default implementationDynamically scalled font for FontStyle.
Default Implementation
Dynamically scalled font for FontStyle.
Declaration
Swift
func preferredFont(forTextStyle textStyle: UIFont.TextStyle) -> UIFont -
preferredFont(forTextStyle:maximumPointSize:compatibleWith:)Default implementationDynamically scalled font for FontStyle with maximumPointSize & traitCollection.
Default Implementation
Dynamically scalled font for FontStyle with maximumPointSize & traitCollection.
Declaration
Swift
func preferredFont(forTextStyle textStyle: UIFont.TextStyle, maximumPointSize: CGFloat, compatibleWith traitCollection: UITraitCollection?) -> UIFont
View on GitHub
Install in Dash
DynamicTypeFont Protocol Reference