Instance Property


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


var isHighlighted: Bool { get set }


Setting this property causes the label to redraw with the appropriate highlight state. A subclass implementing a text button might set this property to true when the user presses the button and set it to false at other times. In order for the highlight to be drawn, the highlightedTextColor property must contain a non-nil value.

The default value of this property is false.

See Also

Managing Highlight Values

var highlightedTextColor: UIColor?

The highlight color applied to the label’s text.