Instance Method

setText(_:)

Sets the text displayed by the text field.

Declaration

func setText(_ text: String?)

Parameters

text

The text displayed in the text field. Specifying nil clears the current text.

See Also

Setting the Text

func setAttributedText(NSAttributedString?)

Sets the styled text displayed by the text field.

func setTextColor(UIColor?)

Sets the text’s color.