---
title: allowsTextAttachmentView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/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](uikit/nstextattachment/bounds.md)
- [contents](uikit/nstextattachment/contents.md)
- [fileType](uikit/nstextattachment/filetype.md)
- [image](uikit/nstextattachment/image.md)
- [fileWrapper](uikit/nstextattachment/filewrapper.md)
- [usesTextAttachmentView](uikit/nstextattachment/usestextattachmentview.md)
- [lineLayoutPadding](uikit/nstextattachment/linelayoutpadding.md)
