Instance Property

colorSpace

Returns the color space associated with a color.

Declaration

var colorSpace: CGColorSpace? { get }

Parameters

color

A color.

Return Value

The color space for the specified color. You are responsible for retaining and releasing it as needed.

See Also

Examining a Color

var alpha: CGFloat

Returns the value of the alpha component associated with a color.

var components: [CGFloat]?

Returns the values of the color components (including alpha) associated with a color.

var numberOfComponents: Int

Returns the number of color components (including alpha) associated with a color.

var pattern: CGPattern?

Returns the pattern associated with a color in a pattern color space.