image(with:)
Retrieves the variant of the image that best matches the specified image configuration details.
Declaration
func image(with configuration: UIImage.Configuration) -> UIImageParameters
- configuration:
The configuration details to use when determining which image to return.
Return Value
The image object for the specified configuration.
Discussion
If this method can’t locate an image that matches the specified image configuration precisely, it returns the best match available.