Contents

applyingSymbolConfiguration(_:)

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

Declaration

func applyingSymbolConfiguration(_ configuration: UIImage.SymbolConfiguration) -> UIImage?

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.

Mentioned in

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