---
title: "init(_:backgroundStyle:_:backgroundAccessoryView:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/documentgrouplaunchscene/init(_:backgroundstyle:_:backgroundaccessoryview:)"
---

# init(_:backgroundStyle:_:backgroundAccessoryView:)

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

## Declaration

```swift
nonisolated init<B>(_ title: LocalizedStringKey, backgroundStyle: B = BackgroundStyle(), @ContentBuilder _ actions: () -> Actions = { DefaultDocumentGroupLaunchActions() }, @ContentBuilder backgroundAccessoryView: @escaping (DocumentLaunchGeometryProxy) -> some View) where B : ShapeStyle
```

## Parameters

- `title`: A key to use for the view title.
- `backgroundStyle`: A background style of the view.
- `actions`: A content builder for returning the view’s actions.
- `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.
