---
title: "init(_:_:background:overlayAccessoryView:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/documentgrouplaunchscene/init(_:_:background:overlayaccessoryview:)"
---

# init(_:_:background:overlayAccessoryView:)

Creates a launch scene for document-based applications with a title, a set of actions, a background, and an overlay accessory view.

## Declaration

```swift
nonisolated init(_ title: LocalizedStringKey, @ContentBuilder _ actions: () -> Actions, @ContentBuilder background: () -> some View, @ContentBuilder overlayAccessoryView: @escaping (DocumentLaunchGeometryProxy) -> some View)
```

## Parameters

- `title`: A key to use for the view title.
- `actions`: A content builder for returning the view’s actions.
- `background`: The background of the scene.
- `overlayAccessoryView`: A content builder for returning the view’s overlay accessory view.

## Discussion

Discussion Use a DocumentGroupLaunchScene alongside any DocumentGroup scenes. If you don’t implement a DocumentGroup in the app declaration, you can get the same design by implementing a DocumentLaunchView.
