---
title: "init(_:_:background:backgroundAccessoryView:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/documentgrouplaunchscene/init(_:_:background:backgroundaccessoryview:)-1valf"
---

# init(_:_:background:backgroundAccessoryView:)

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

## Declaration

```swift
nonisolated init(_ title: LocalizedStringKey, @ContentBuilder _ actions: () -> Actions, @ContentBuilder background: () -> some View, @ContentBuilder backgroundAccessoryView: @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.
- `backgroundAccessoryView`: A content builder for returning the view’s background 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.
