Instance Property

allowsEditingTextAttributes

A Boolean value indicating whether the text view allows the user to edit style information.

Declaration

var allowsEditingTextAttributes: Bool { get set }

Discussion

When set to true, the text view allows the user to change the basic styling of the currently selected text. The available style options are listed in the edit menu and only apply to the selection.

The default value of this property is false.

See Also

Configuring the Text Attributes

var text: String!

The text displayed by the text view.

var attributedText: NSAttributedString!

The styled text displayed by the text view.

var font: UIFont?

The font of the text.

var textColor: UIColor?

The color of the text.

var isEditable: Bool

A Boolean value indicating whether the receiver is editable.

var dataDetectorTypes: UIDataDetectorTypes

The types of data converted to tappable URLs in the text view.

var textAlignment: NSTextAlignment

The technique to use for aligning the text.

var typingAttributes: [NSAttributedString.Key : Any]

The attributes to apply to new text being entered by the user.

var textContainerInset: UIEdgeInsets

The inset of the text container's layout area within the text view's content area.