UIColor
An object that stores color data and sometimes opacity.
Declaration
class UIColorMentioned in
Overview
Use color to customize your app’s appearance, communicate status, and help people visualize data. To learn more about using color in your apps, see Human Interface Guidelines.
UIColor provides a list of class properties that create adaptable and fixed colors such as blue, green, purple, and more. UIColor also offers properties to specify system-provided colors for UI elements such as labels, text, and buttons. You can create color objects by specifying color component values such as RGB, hue, and saturation. You can also create colors from other color objects and even create a pattern-based color from an image.
Topics
Getting existing colors
Applying the color to the drawing environment
Getting the color information
Determining color values with color spacescgColorciColorgetHue(_:saturation:brightness:alpha:)getRed(_:green:blue:alpha:)getWhite(_:alpha:)linearExposureaccessibilityName