<!--
{
  "availability" : [
    "iOS: 16.2.0 -",
    "iPadOS: 16.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ActivityKit",
  "identifier" : "/documentation/ActivityKit/Activity/update(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ActivityKit"
    ],
    "preciseIdentifier" : "s:11ActivityKit0A0C6updateyyAA0A7ContentVy0D5StateQzGYaF"
  },
  "title" : "update(_:)"
}
-->

# update(_:)

Updates the dynamic content of the Live Activity.

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

## Parameters

`content`

The updated dynamic content for the Live Activity. The size of its
[`state`](/documentation/ActivityKit/ActivityContent/state) property can’t exceed 4KB in size.

## 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 <doc://com.apple.documentation/documentation/BackgroundTasks>.

> Note: The system ignores attempts to update a Live Activity that ended.

---

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)