<!--
{
  "availability" : [
    "iOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TelephonyMessagingKit",
  "identifier" : "/documentation/TelephonyMessagingKit/MMSPartContent/data",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "TelephonyMessagingKit"
    ],
    "preciseIdentifier" : "s:21TelephonyMessagingKit14MMSPartContentV4data10Foundation4DataVvp"
  },
  "title" : "data"
}
-->

# data

The raw data used for the MMS content part.

```
var data: Data
```

## Discussion

Interpreting this value depends on the part’s [`contentType`](/documentation/TelephonyMessagingKit/MMSPartContent/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 <doc://com.apple.documentation/documentation/Foundation/Data> instance; for example, `let textData = myString.data(using: .utf8)`.

---

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)