Contents

text

The text that the label displays.

Declaration

var text: String? { get set }

Discussion

This property is nil by default. Assigning a new value to this property also replaces the value of the attributedText property with the same text, although without any inherent style attributes. Instead the label styles the new string using shadowColor, textAlignment, and other style-related properties of the class.

See Also

Accessing the text attributes