register(_:with:)
Registers an image with the specified image configuration details.
Declaration
func register(_ image: UIImage, with configuration: UIImage.Configuration)Parameters
- image:
The image you want to register with the image asset.
- configuration:
The image configuration details to associate with
image.
Discussion
Each image in an image asset must have a unique configuration. If the asset already contains a registered image with the equivalent configuration, it replaces that image with the one in the image parameter.