Create asset variations for different device traits

In Interface Builder, you can add, remove, and edit variations of an asset for different device traits.

Varying traits in the Attributes inspector

  1. Select an asset catalog to display its contents.

  2. In the set list, select the desired asset.

  3. In the utilities area, select the Attributes inspector.

  4. In the Attributes Inspector, add, remove, and edit the desired trait settings.

Varying an image for light and dark mode

  1. On the Interface Builder canvas, select the image view.

  2. In the Attributes inspector, click the plus (+) button next to image name or to the highlighted image name.

  3. In the dropdown menu that appears, select the desired variation.

  4. Set the image name for the new variation choosing an image from the dropdown or by entering the name of the image.

SEE ALSOCreate user interface variations for different device configurationsCreate asset variations for different device traits