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

# importsGraphics

A Boolean value that controls whether the user can drag image files into the text field.

## Declaration

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

## Discussion

Discussion If true, the text field accepts dragged images; if false, it doesn’t. You can add images programmatically regardless of this setting.

## See Also

### Controlling Rich Text Behavior

- [allowsEditingTextAttributes](appkit/nstextfield/allowseditingtextattributes.md)
