---
title: "update(_:)"
framework: activitykit
role: symbol
role_heading: Instance Method
path: "activitykit/activity/update(_:)"
---

# update(_:)

Updates the dynamic content of the Live Activity.

## Declaration

```swift
func update(_ content: ActivityContent<Activity<Attributes>.ContentState>) async
```

## Parameters

- `content`: The updated dynamic content for the Live Activity. The size of its doc://com.apple.activitykit/documentation/ActivityKit/ActivityContent/state property can’t exceed 4KB in size.

## Mentioned in

Displaying live data with Live Activities

## Discussion

Discussion Use this function to update the Live Activity while your app is in the foreground or while it’s in the background — for example, by using Background Tasks. note: The system ignores attempts to update a Live Activity that ended.

## See Also

### Updating a Live Activity

- [update(_:alertConfiguration:)](activitykit/activity/update(_:alertconfiguration:).md)
- [AlertConfiguration](activitykit/alertconfiguration.md)
- [update(_:alertConfiguration:timestamp:)](activitykit/activity/update(_:alertconfiguration:timestamp:).md)
