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

# MMSPartContent

A structure that defines custom headers within MMS content.

```
struct MMSPartContent
```

## Topics

### Creating a content part

[`init(data: Data, contentType: UTType?, contentID: String, disposition: MMSPartContent.MMSDispositionType, fileName: String)`](/documentation/TelephonyMessagingKit/MMSPartContent/init(data:contentType:contentID:disposition:fileName:))

Creates an MMS part with the provided values.

### Accessing part properties

[`var data: Data`](/documentation/TelephonyMessagingKit/MMSPartContent/data)

The raw data used for the MMS content part.

[`var disposition: MMSPartContent.MMSDispositionType`](/documentation/TelephonyMessagingKit/MMSPartContent/disposition)

The disposition of the MMS part, indicating whether the part renders inline or as an attachment.

[`enum MMSDispositionType`](/documentation/TelephonyMessagingKit/MMSPartContent/MMSDispositionType)

A structure that defines the disposition of the content part when rendered.

[`var filename: String`](/documentation/TelephonyMessagingKit/MMSPartContent/filename)

The file name of the MMS part.

[`var contentID: String`](/documentation/TelephonyMessagingKit/MMSPartContent/contentID)

A unique identifier for the part.

[`var contentType: UTType?`](/documentation/TelephonyMessagingKit/MMSPartContent/contentType)

The content type of the part, as a Uniform Type Identifier.

  <doc://com.apple.documentation/documentation/UniformTypeIdentifiers/UTType-swift.struct>

### Working with custom headers

[`var customHeaders: [MMSPartContent.MMSCustomHeader]`](/documentation/TelephonyMessagingKit/MMSPartContent/customHeaders)

A dictionary of custom headers to send in the MMS message.

[`func addCustomHeader(MMSPartContent.MMSCustomHeader)`](/documentation/TelephonyMessagingKit/MMSPartContent/addCustomHeader(_:))

A helper function to add custom headers.

[`struct MMSCustomHeader`](/documentation/TelephonyMessagingKit/MMSPartContent/MMSCustomHeader)

A structure that defines a custom header as a key-value pair.

### Encoding and decoding

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

---

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)