Initializer

init(lightContentImage:darkContentImage:)

Creates an image set with light and dark versions of an image.

Declaration

init(lightContentImage lightImage: UIImage, darkContentImage darkImage: UIImage)

Parameters

lightContentImage

The image the system displays for an image set when userInterfaceStyle is UIUserInterfaceStyle.light.

darkContentImage

The image the system displays for an image set when userInterfaceStyle is UIUserInterfaceStyle.dark.

Return Value

A newly initialized image set.