Contents

UIColor

An object that stores color data and sometimes opacity.

Declaration

class UIColor

Mentioned 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

Resolving a dynamically generated color

Working with color prominence

Working with high dynamic range (HDR) colors

Initializers

Default Implementations