---
title: data
framework: TelephonyMessagingKit
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+]
path: telephonymessagingkit/mmspartcontent/data
---

# data

The raw data used for the MMS content part.

## Declaration

```swift
var data: Data
```

## Discussion

Discussion Interpreting this value depends on the part’s contentType. For example, the data for a file attachment can be the file’s contents in binary. For file attachments, this can be the file contents in binary. tip: When sending an MMS message that includes text, convert the text string to a Data instance; for example, let textData = myString.data(using: .utf8).

## See Also

### Accessing part properties

- [disposition](telephonymessagingkit/mmspartcontent/disposition.md)
- [MMSPartContent.MMSDispositionType](telephonymessagingkit/mmspartcontent/mmsdispositiontype.md)
- [filename](telephonymessagingkit/mmspartcontent/filename.md)
- [contentID](telephonymessagingkit/mmspartcontent/contentid.md)
- [contentType](telephonymessagingkit/mmspartcontent/contenttype.md)
- [UTType](uniformtypeidentifiers/uttype-swift.struct.md)
