Instance Property

isEnabled

The enabled state to use when drawing the label’s text.

Declaration

var isEnabled: Bool { get set }

Discussion

This property determines only how the label draws its text. The label dims the text somewhat when not enabled to indicate it’s not active. The default value of this property is true.

See Also

Accessing the Text Attributes

var text: String?

The text that the label is displaying.

var attributedText: NSAttributedString?

The styled text displayed in the label.

var font: UIFont!

The font used to display the text.

var textColor: UIColor!

The color of the text.

var textAlignment: NSTextAlignment

The technique to use for aligning the text.

var lineBreakMode: NSLineBreakMode

The technique to use for wrapping and truncating the label’s text.

var enablesMarqueeWhenAncestorFocused: Bool

A Boolean value that determines whether the label scrolls its text while one of its containing views has focus.