Instance Method

imageByApplyingSymbolConfiguration:

Returns a new version of the current image, applying the specified configuration attributes on top of the current attributes.

Declaration

- (UIImage *)imageByApplyingSymbolConfiguration:(UIImageSymbolConfiguration *)configuration;

Parameters

configuration

The configuration attributes to apply on top of the existing attributes. Values in this object take precedence over the image's current configuration values.

Return Value

A new version of the image object that contains the merged configuration details.

Discussion

This method creates a new image object, merging the traits of configuration with the new image's traits. During the merge, this method gives precedence to explicitly set values in the configuration parameter. This method then replaces the current image-related attributes with the attributes in configuration. If an attribute in configuration contains an unspecified value, this method leaves the current image's setting intact.

See Also

Changing the Image Attributes

- imageWithConfiguration:

Returns a new version of the current image, replacing the current configuration attributes with the specified attributes.

- imageFlippedForRightToLeftLayoutDirection

Returns a new version of the current image, prepared to flip horizontally when it’s in a right-to-left layout.

- imageWithHorizontallyFlippedOrientation

Returns a new version of the image whose orientation is the mirror of the original image.

- imageWithRenderingMode:

Returns a new version of the image configured with the specified rendering mode.

- imageWithAlignmentRectInsets:

Returns a new version of the image that uses the specified alignment insets.

- resizableImageWithCapInsets:

Returns a new version of the image that contains the specified cap insets.

- resizableImageWithCapInsets:resizingMode:

Returns a new version of the image with the specified cap insets and options.

- imageWithoutBaseline

Creates a copy of the current image object without any baseline information.

- imageWithBaselineOffsetFromBottom:

Creates a new image with a baseline located at the specified offset from the bottom of the image.

UIImageConfiguration

A configuration object containing the traits that the system used when selecting the current image variant.

UIImageSymbolConfiguration

An object containing the specific font, size, style, and weight attributes to apply to a symbol image.