Instance Property

highlightedTextColor

The highlight color applied to the label’s text.

Declaration

var highlightedTextColor: UIColor? { get set }

Discussion

Subclasses that use labels to implement a type of text button can use the value in this property when drawing the pressed state for the button. This color is applied to the label automatically whenever the isHighlighted property is set to true.

The default value of this property is nil .

See Also

Managing Highlight Values

var isHighlighted: Bool

A boolean value indicating whether the label should be drawn with a highlight.