<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMessageComposeViewControllerAttachmentAlternateFilename",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "c:@MFMessageComposeViewControllerAttachmentAlternateFilename"
  },
  "title" : "MFMessageComposeViewControllerAttachmentAlternateFilename"
}
-->

# MFMessageComposeViewControllerAttachmentAlternateFilename

The key for the alternate filename for the file-based item attached to the message.

```
let MFMessageComposeViewControllerAttachmentAlternateFilename: String
```

## Discussion

Use this constant with the [`attachments`](/documentation/MessageUI/MFMessageComposeViewController/attachments) property to retrieve the optional, more descriptive name for a message attachment.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)