withConfiguration(_:)
Returns a new version of the current image, replacing the current configuration attributes with the specified attributes.
Declaration
func withConfiguration(_ configuration: UIImage.Configuration) -> UIImageParameters
- 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
applyingSymbolConfiguration(_:)imageFlippedForRightToLeftLayoutDirection()withHorizontallyFlippedOrientation()withRenderingMode(_:)withAlignmentRectInsets(_:)resizableImage(withCapInsets:)resizableImage(withCapInsets:resizingMode:)imageWithoutBaseline()withBaselineOffset(fromBottom:)UIImage.ConfigurationUIImage.SymbolConfiguration