UIColor
UIColor is a class in the UIKit framework that represents colors used in Apple platform user interfaces, including iOS and tvOS. It provides the color value applied to views, text, layers, and other UI elements. A UIColor object encapsulates color information in various color spaces and can be created from component values, grayscale, patterns, or asset catalogs. It can also be resolved from named assets.
Colors are commonly defined in the sRGB color space with four components: red, green, blue, and alpha
Creation options include UIColor(red:green:blue:alpha:) and UIColor(white:alpha:), as well as UIColor(displayP3Red:green:blue:alpha:) for a wider color gamut. Colors
When using colors in code, it is common to store them in asset catalogs or use color