init(textStyle:)
Creates a configuration object with the specified font text style information.
Declaration
convenience init(textStyle: UIFont.TextStyle)Parameters
- textStyle:
A system text style that determines the initial appearance of your symbol image. For a list of possible values, see Textstyle.
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.