Instance Property

ciColor

The Core Image color associated with the receiver.

Declaration

var ciColor: CIColor { get }

Discussion

This property throws an exception if the color object was not initialized with a Core Image color.

The color object in this property does not adapt automatically to Dark Mode changes. If you use it to set the color of interface elements, you must update that color yourself when the userInterfaceStyle trait of the current trait collection changes. For information on how to apply color information reliably, see Supporting Dark Mode in Your Interface.