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

# totalSize

The total size of the message.

```
var totalSize: Measurement<UnitInformationStorage> { get }
```

## Discussion

If this value exceeds `MMSConfiguration/maximumMessageSize`, sending the message with [`sendMessage(_:)`](/documentation/TelephonyMessagingKit/MMSService/sendMessage(_:)) fails with [`MMSService.Error.maximumSizeExceeded`](/documentation/TelephonyMessagingKit/MMSService/Error/maximumSizeExceeded).

---

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)