<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ActivityKit",
  "identifier" : "/documentation/ActivityKit/ActivityAttributes/ContentState",
  "metadataVersion" : "0.1.0",
  "role" : "Associated Type",
  "symbol" : {
    "kind" : "Associated Type",
    "modules" : [
      "ActivityKit"
    ],
    "preciseIdentifier" : "s:11ActivityKit0A10AttributesP12ContentStateQa"
  },
  "title" : "ContentState"
}
-->

# ContentState

The associated type that describes the dynamic content of a Live Activity.

```
associatedtype ContentState : Decodable, Encodable, Hashable
```

## Discussion

The dynamic data of a Live Activity that’s encoded by `ContentState` can’t exceed 4KB.

---

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)