Contents

UI element colors

Choose colors for UI elements such as labels, text, backgrounds, and links.

Overview

UIKit provides color objects for the foreground and background colors of your app’s UI elements. The names of these color objects reflect their intended use, rather than specific color values.

Except where noted, the color objects adapt automatically to Dark Mode changes when you use the provided UIColor object. If you retrieve the color values, either directly or using another type such as CGColor, you must handle Dark Mode changes yourself. For more information about supporting Dark Mode, see Supporting Dark Mode in your interface.

Topics

Label colors

Fill colors

Text colors

Tint color

Standard content background colors

Grouped content background colors

Separator colors

Link color

Nonadaptable colors

Deprecated colors

See Also

Getting existing colors