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

# init(_:_:background:)

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

## Declaration

```swift
nonisolated init(_ title: some StringProtocol, @ContentBuilder _ actions: () -> Actions, @ContentBuilder background: () -> some View)
```

## Parameters

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

## 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.
