<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextField/allowsEditingTextAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextField(py)allowsEditingTextAttributes"
  },
  "title" : "allowsEditingTextAttributes"
}
-->

# allowsEditingTextAttributes

A Boolean value that controls whether the user can change font attributes of the text field’s string.

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

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, and the text value is an attributed string, the text field’s content displays using the attributed string’s visual settings. The user can modify the text field’s style attributes in the font panel.

If <doc://com.apple.documentation/documentation/Swift/false>, and the text is an attributed string, the text field ignores style attributes, such as font and color. The text field’s content displays according to the text field’s settings. The text field ignores changes to the attributed string’s attributes when displaying the string and when the text field is in edit mode.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)