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

# update(_:alertConfiguration:)

Updates the dynamic content of a Live Activity and alerts a person about the Live Activity update.

```
func update(_ content: ActivityContent<Activity<Attributes>.ContentState>, alertConfiguration: AlertConfiguration? = nil) 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.

`alertConfiguration`

The alert configuration you use to configure how the system notifies
a person about the updated content of the Live Activity.

## Discussion

The system ignores updates to a Live Activity that’s in the [`ActivityState.ended`](/documentation/ActivityKit/ActivityState/ended)
state.

---

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)