---
title: "isSupportedAttachmentUTI(_:)"
framework: messageui
role: symbol
role_heading: Type Method
path: "messageui/mfmessagecomposeviewcontroller/issupportedattachmentuti(_:)"
---

# isSupportedAttachmentUTI(_:)

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

## Declaration

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

## Parameters

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

## Return Value

Return Value true if a file with the specified UTI can be attached to the message, or false otherwise.

## See Also

### Determining if message composition is available

- [canSendText()](messageui/mfmessagecomposeviewcontroller/cansendtext().md)
- [canSendAttachments()](messageui/mfmessagecomposeviewcontroller/cansendattachments().md)
- [canSendSubject()](messageui/mfmessagecomposeviewcontroller/cansendsubject().md)
