Contents

allowsEditingTextAttributes

A Boolean value that determines whether the user can edit the attributes of the text in the text field.

Declaration

var allowsEditingTextAttributes: Bool { get set }

Discussion

If this property is set to true, the user may edit the style information of the text. In addition, pasting styled text into the text field retains any embedded style information. If false, the text field prohibits the editing of style information and strips style information from any pasted text. However, you can still set the style information programmatically using the methods of this class.

The default value of this property is false.

See Also

Managing the editing behavior