numberOfComponents
The number of components in the color.
Declaration
var numberOfComponents: Int { get }Discussion
This property reflects the number of floating-point component values in the color and includes the alpha component. If the color object does not have any floating-point component values, accessing this property raises an exception.