kCMTextMarkupAttribute_BackgroundColorARGB
A background color for the text.
Declaration
let kCMTextMarkupAttribute_BackgroundColorARGB: CFStringDiscussion
This attribute’s value must be a CFArray of four CFNumbers representing alpha, red, green, and blue fields with values between 0.0 and 1.0. The system interprets the red, green, and blue components in the sRGB color space. The alpha indicates the opacity from 0.0 for transparent to 1.0 for 100 percent opaque.
The color applies to the geometry (for example, a box) containing the text. The container’s background color may have an alpha of 0 so the system doesn’t display it even though the system displays the text. You can optionally control the color behind individual characters with the kCMTextMarkupAttribute_CharacterBackgroundColorARGB attribute.
If you use this attribute, apply it to the entire attributed string.