uicolor swift
UIColor (UIColor)
An object that stores color data and sometimes opacity.
存储颜色数据和有时不透明度的对象。
There are several ways to select colors. The two important color identification systems are RGB and HSB. The most useful to programmers is the RGB or Red-Green-Blue color system. Each of the color components can be expressed separately as a value between 0 and 255, with 255 being the full color and 0 being no color.
有几种选择颜色的方法。 两个重要的颜色识别系统是RGB和HSB 。 对程序员最有用的是RGB或Red-Green-Blue颜色系统。 每个颜色分量都可以分别表示为0到255之间的值,其中255为全色,0为无色。
内置UIColor预设 (Built-In UIColor Presets)
There are a few built-in colors, which are accessed with class variables. These are the available preset colors:
有一些内置的颜色,可以使用类变量进行访问。 这些是可用的预设颜色:
![Image for post](https://miro.medium.com/max/9999/0*-wbllSEJq4Kg-su-.jpg)
If you need to store th