backgroundColor
The color of the background behind the text.
Declaration
static let backgroundColor: NSAttributedString.KeyDiscussion
The value of this attribute is a UIColor object. Use this attribute to specify the color of the background area behind the text. If you do not specify this attribute, no background color is drawn.