---
title: fileWrapper
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextattachment/filewrapper
---

# fileWrapper

The text attachment’s file wrapper.

## Declaration

```swift
var fileWrapper: FileWrapper? { get set }
```

## Discussion

Discussion The file wrapper holds the contents of the attached file. In iOS, modifying this property has a side effect of invalidating the image, contents, and fileType properties.

## 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)
- [allowsTextAttachmentView](appkit/nstextattachment/allowstextattachmentview.md)
- [usesTextAttachmentView](appkit/nstextattachment/usestextattachmentview.md)
- [lineLayoutPadding](appkit/nstextattachment/linelayoutpadding.md)
