Type Method

configurationWithTextStyle:scale:

Creates a configuration object with the specified font text style and scale information.

Declaration

+ (instancetype)configurationWithTextStyle:(UIFontTextStyle)textStyle scale:(UIImageSymbolScale)scale;

Parameters

textStyle

The system text styles that support Dynamic Type. For a list of possible values, see UIFontTextStyle.

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 UIImageSymbolScale.

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.

See Also

Creating a Symbol Configuration Object

+ configurationWithPointSize:

Creates a configuration object with the specified point-size information.

+ configurationWithPointSize:weight:

Creates a configuration object with the specified point-size and weight information.

+ configurationWithPointSize:weight:scale:

Creates a configuration object with the specified point-size, weight, and scale information.

+ configurationWithScale:

Creates a configuration object with the specified scale information.

+ configurationWithTextStyle:

Creates a configuration object with the specified font text style information.

+ configurationWithWeight:

Creates a configuration object with the specified weight information.

+ configurationWithFont:

Creates a new configuration object that with the specified font information.

+ configurationWithFont:scale:

Creates a new configuration object with the specified font and scale information.

UIImageSymbolScale

Constants indicating which scale variant of a symbol image to use.

UIImageSymbolWeight

Constants indicating which weight variant of a symbol image to use.