Instance Property

configuration

The configuration details for the image.

Declaration

@property(nonatomic, copy, readonly) __kindof UIImageConfiguration *configuration;

Discussion

Use this property to access the traits associated with the image. The system uses the specified traits to determine which variant of the image to load and draw, falling back on the current environment for any unspecified traits. The default value of this property is a configuration object with unspecified traits.

You cannot modify this property directly, but you can use the imageWithConfiguration: method to create a new image object with a specific set of traits. You might do so when you want to render the image yourself using a specific set of traits.

If the image is a symbol image, this property always contains a UIImageSymbolConfiguration object.

See Also

Getting the Image Configuration

symbolConfiguration

The configuration details for a symbol image.

traitCollection

The trait collection that describes the current variant of the image.