---
title: attachments
framework: messageui
role: symbol
role_heading: Instance Property
path: messageui/mfmessagecomposeviewcontroller/attachments
---

# attachments

Returns an array of dictionaries that describe the properties of an attachment.

## Declaration

```swift
var attachments: [[AnyHashable : Any]]? { get }
```

## Discussion

Discussion Each attachment is described by an NSDictionary object in the attachments array. To retrieve the alternate file name for an attachment from its dictionary, use the MFMessageComposeViewControllerAttachmentAlternateFilename key.

## See Also

### Managing attachments

- [disableUserAttachments()](messageui/mfmessagecomposeviewcontroller/disableuserattachments().md)
- [addAttachmentURL(_:withAlternateFilename:)](messageui/mfmessagecomposeviewcontroller/addattachmenturl(_:withalternatefilename:).md)
- [addAttachmentData(_:typeIdentifier:filename:)](messageui/mfmessagecomposeviewcontroller/addattachmentdata(_:typeidentifier:filename:).md)
- [MFMessageComposeViewControllerAttachmentURL](messageui/mfmessagecomposeviewcontrollerattachmenturl.md)
- [MFMessageComposeViewControllerAttachmentAlternateFilename](messageui/mfmessagecomposeviewcontrollerattachmentalternatefilename.md)
- [insertCollaborationItemProvider(_:)](messageui/mfmessagecomposeviewcontroller/insertcollaborationitemprovider(_:).md)
