components
Returns the values of the color components (including alpha) associated with a color.
Declaration
var components: [CGFloat]? { get }Discussion
An array of intensity values for the color components (including alpha) associated with the specified color. The size of the array is equal to the color’s numberOfComponents value.