UIImage.SymbolConfiguration
An object that contains the specific font, size, style, and weight attributes to apply to a symbol image.
Declaration
class SymbolConfigurationMentioned in
Overview
Symbol image configuration objects include details such as the point size, scale, text style, weight, and font to apply to your symbol image. The system uses these details to determine which variant of the image to use and how to scale or style the image.
UIImage.SymbolConfiguration objects are immutable after you create them. If you use the applying(_:) method on the object, the new image attributes replace any previous attributes you supplied. After creating a symbol configuration object, assign it to the preferredSymbolConfiguration property of the UIImageView object you use to display the image. If you draw the image directly, use the withConfiguration(_:) method to create a new image that contains the new attributes.
Topics
Creating a symbol configuration
init(pointSize:)init(pointSize:weight:)init(pointSize:weight:scale:)init(scale:)init(textStyle:)init(textStyle:scale:)init(weight:)init(font:)init(font:scale:)UIImage.SymbolScaleUIImage.SymbolWeightUIImage.SymbolColorRenderingModeUIImage.SymbolVariableValueMode
Creating a color configuration
Getting an unspecified configuration
Removing configuration attributes
configurationWithoutPointSizeAndWeight()configurationWithoutScale()configurationWithoutTextStyle()configurationWithoutWeight()