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

# allowsImageEditing

Indicates whether image attachments should permit editing of their images.

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

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if image editing is allowed; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

For image editing to be allowed, the text view must be editable and the text attachment cell must support image editing.

---

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)