---
title: allowsTextAttachmentView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextattachment/allowstextattachmentview
---

# allowsTextAttachmentView

A Boolean value that determines whether the text attachment uses text attachment views.

## Declaration

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

## Discussion

Discussion When true, the text attachment tries to use a text attachment view returned by viewProvider(for:location:textContainer:). Default is true.

## See Also

### Defining the attachment’s contents

- [bounds](appkit/nstextattachment/bounds.md)
- [contents](appkit/nstextattachment/contents.md)
- [fileType](appkit/nstextattachment/filetype.md)
- [image](appkit/nstextattachment/image.md)
- [fileWrapper](appkit/nstextattachment/filewrapper.md)
- [usesTextAttachmentView](appkit/nstextattachment/usestextattachmentview.md)
- [lineLayoutPadding](appkit/nstextattachment/linelayoutpadding.md)
