Instance Method

setAttributedText(_:)

Sets the styled text displayed by the text field.

Declaration

func setAttributedText(_ attributedText: NSAttributedString?)

Parameters

attributedText

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

See Also

Setting the Text

func setText(String?)

Sets the text displayed by the text field.

func setTextColor(UIColor?)

Sets the text’s color.