A set of components that define a color, with a color space specifying how to interpret them.
- iOS 2.0+
- macOS 10.3+
- tvOS 9.0+
- watchOS 2.0+
Color objects provide a fast and convenient way to manage and set colors, especially colors that are used repeatedly. Drawing operations use color objects for setting fill and stroke colors, managing alpha, and setting color with a pattern.