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

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

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

## Declaration

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

## Parameters

- `title`: A text value to use for the 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.
- `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.
