<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/ActivityViewContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit19ActivityViewContextV"
  },
  "title" : "ActivityViewContext"
}
-->

# ActivityViewContext

A structure that describes the view context for creating the views of a Live Activity.

```
struct ActivityViewContext<Attributes> where Attributes : ActivityAttributes
```

## Topics

### Describing a Live Activity

[`attributes`](/documentation/WidgetKit/ActivityViewContext/attributes)

A set of attributes that describe a Live Activity and its content at the time of its creation.

[`state`](/documentation/WidgetKit/ActivityViewContext/state)

The dynamic content of a Live Activity at the time of its creation.

[`isStale`](/documentation/WidgetKit/ActivityViewContext/isStale)

A Boolean value that describes whether the Live Activity is out of date.

[`activityID`](/documentation/WidgetKit/ActivityViewContext/activityID)

A unique identifier for the Live Activity.



---

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)