Contents

backgroundColor

The color of the background behind the text.

Declaration

static let backgroundColor: NSAttributedString.Key

Discussion

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.

See Also

Getting rendering attribute keys