---
title: allowsEditingTextAttributes
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextfield/allowseditingtextattributes
---

# allowsEditingTextAttributes

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

## Declaration

```swift
var allowsEditingTextAttributes: Bool { get set }
```

## Discussion

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

- [isEditing](uikit/uitextfield/isediting.md)
- [clearsOnBeginEditing](uikit/uitextfield/clearsonbeginediting.md)
- [clearsOnInsertion](uikit/uitextfield/clearsoninsertion.md)
- [UITextField.DidEndEditingReason](uikit/uitextfield/didendeditingreason.md)
- [didEndEditingReasonUserInfoKey](uikit/uitextfield/didendeditingreasonuserinfokey.md)
- [textDidBeginEditingNotification](uikit/uitextfield/textdidbegineditingnotification.md)
- [textDidChangeNotification](uikit/uitextfield/textdidchangenotification.md)
- [textDidEndEditingNotification](uikit/uitextfield/textdidendeditingnotification.md)
