<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/ActivityConfiguration/init(for:content:dynamicIsland:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit21ActivityConfigurationV3for7content13dynamicIslandACyxGxm_qd__AA0C11ViewContextVyxGcAA07DynamicH0VAJctc7SwiftUI0I0Rd__lufc"
  },
  "title" : "init(for:content:dynamicIsland:)"
}
-->

# init(for:content:dynamicIsland:)

Creates a configuration object for a Live Activity.

```
@MainActor @preconcurrency init<Content>(for attributesType: Attributes.Type, @ViewBuilder content: @escaping (ActivityViewContext<Attributes>) -> Content, dynamicIsland: @escaping (ActivityViewContext<Attributes>) -> DynamicIsland) where Content : View
```

## Parameters

`attributesType`

The type that describes the content of the Live Activity.

`content`

A closure that creates the view for the Live Activity that appears on the Lock Screen.
This view also appears as a banner on the Home Screen of devices that don’t support the
Dynamic Island when you alert a person about updated Live Activity content.

`dynamicIsland`

A closure that builds the Live Activity that appears in the Dynamic Island.

---

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)