<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/DynamicIsland/init(expanded:compactLeading:compactTrailing:minimal:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit13DynamicIslandV8expanded14compactLeading0F8Trailing7minimalAcA0cD15ExpandedContentVyxGyc_q_ycq0_ycq1_yctc7SwiftUI4ViewRzAkLR_AkLR0_AkLR1_r2_lufc"
  },
  "title" : "init(expanded:compactLeading:compactTrailing:minimal:)"
}
-->

# init(expanded:compactLeading:compactTrailing:minimal:)

Creates a configuration object with views that appear in the Dynamic Island.

```
init<Expanded, CompactLeading, CompactTrailing, Minimal>(@DynamicIslandExpandedContentBuilder expanded: @escaping () -> DynamicIslandExpandedContent<Expanded>, @ViewBuilder compactLeading: @escaping () -> CompactLeading, @ViewBuilder compactTrailing: @escaping () -> CompactTrailing, @ViewBuilder minimal: @escaping () -> Minimal) where Expanded : View, CompactLeading : View, CompactTrailing : View, Minimal : View
```

## Parameters

`expanded`

A closure that builds the view for the expanded presentation of the Live Activity.

`compactLeading`

A closure that builds the view for the compact leading presentation of the Live Activity.

`compactTrailing`

A closure that builds the view for the compact trailing presentation of the Live Activity.

`minimal`

A closure that builds the view for the minimal presentation of 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)