text
The text that the text field displays.
Declaration
var text: String? { get set }Discussion
Assigning a new value to this property also replaces the value of the attributedText property with the same text, albeit without any inherent style attributes. Instead the text view styles the new string using the font, textColor, and other style-related properties of the class.
This value is nil by default.