init(textStyle:scale:)
Creates a configuration object with the specified font text style and scale information.
Declaration
convenience init(textStyle: UIFont.TextStyle, scale: UIImage.SymbolScale)Parameters
- textStyle:
The system text styles that support Dynamic Type. For a list of possible values, see Textstyle.
- scale:
The symbol image scale variant to select. Use this parameter to make the image appear bigger or smaller than text that uses the same text style. For a list of possible values, see Symbolscale.
Return Value
A new symbol configuration object with the specified information.
Discussion
Symbol images pick up the font styling information associated with the specified text style, causing them to match any text that uses the same style. Like it does for the text, UIKit scales the image to match the current Dynamic Type setting.