---
title: ContentState
framework: activitykit
role: symbol
role_heading: Associated Type
path: activitykit/activityattributes/contentstate
---

# ContentState

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

## Declaration

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

## Discussion

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