Contents

withConfiguration(_:)

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

Declaration

func withConfiguration(_ configuration: UIImage.Configuration) -> UIImage

Parameters

  • configuration:

    The new configuration attributes to associate with the image.

Return Value

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

Discussion

This method creates a new image object, replacing the image’s current configuration with the values specified in the configuration parameter.

See Also

Changing the image attributes