<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMessageComposeViewController/isSupportedAttachmentUTI(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "c:objc(cs)MFMessageComposeViewController(cm)isSupportedAttachmentUTI:"
  },
  "title" : "isSupportedAttachmentUTI(_:)"
}
-->

# isSupportedAttachmentUTI(_:)

Indicates whether or not the message can accept a file, with the specified UTI, as an attachment.

```
class func isSupportedAttachmentUTI(_ uti: String) -> Bool
```

## Parameters

`uti`

The UTI (Uniform Type Identifier) in question. See [Uniform Type Identifiers Reference](https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009257)

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if a file with the specified UTI can be attached to the message, or <doc://com.apple.documentation/documentation/Swift/false> otherwise.

## Discussion

---

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)