---
title: importsGraphics
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/importsgraphics
---

# importsGraphics

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to import files by dragging.

## Declaration

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

## Discussion

Discussion true to allow the user to import files by dragging onto the text views sharing the receiver’s layout manager, false otherwise. Text views that are set to accept dragged files are also set to allow rich text. By default, text views don’t accept dragged files but do allow rich text.

## See Also

### Related Documentation

- [insert(_:at:)](foundation/nsmutableattributedstring/insert(_:at:).md)
- [init(attachment:)](foundation/nsattributedstring/init(attachment:).md)
- [textStorage](appkit/nstextview/textstorage.md)

### Setting behavioral attributes

- [allowsUndo](appkit/nstextview/allowsundo.md)
- [isEditable](appkit/nstextview/iseditable.md)
- [isSelectable](appkit/nstextview/isselectable.md)
- [isFieldEditor](appkit/nstextview/isfieldeditor.md)
- [isRichText](appkit/nstextview/isrichtext.md)
- [setBaseWritingDirection(_:range:)](appkit/nstextview/setbasewritingdirection(_:range:).md)
- [defaultParagraphStyle](appkit/nstextview/defaultparagraphstyle.md)
- [outline(_:)](appkit/nstextview/outline(_:).md)
- [allowsImageEditing](appkit/nstextview/allowsimageediting.md)
- [isAutomaticQuoteSubstitutionEnabled](appkit/nstextview/isautomaticquotesubstitutionenabled.md)
- [toggleAutomaticQuoteSubstitution(_:)](appkit/nstextview/toggleautomaticquotesubstitution(_:).md)
- [isAutomaticLinkDetectionEnabled](appkit/nstextview/isautomaticlinkdetectionenabled.md)
- [toggleAutomaticLinkDetection(_:)](appkit/nstextview/toggleautomaticlinkdetection(_:).md)
- [displaysLinkToolTips](appkit/nstextview/displayslinktooltips.md)
- [isAutomaticTextCompletionEnabled](appkit/nstextview/isautomatictextcompletionenabled.md)
