<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DocumentGroupLaunchScene/init(_:backgroundStyle:_:backgroundAccessoryView:overlayAccessoryView:)-2d13c",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24DocumentGroupLaunchSceneV_15backgroundStyle_0G13AccessoryView07overlayiJ0ACyxGAA4TextVSg_qd__xyXEqd_0_AA0cE13GeometryProxyVcqd_1_ALctcAA05ShapeH0Rd__AA0J0Rd_0_AaNRd_1_r1_lufc"
  },
  "title" : "init(_:backgroundStyle:_:backgroundAccessoryView:overlayAccessoryView:)"
}
-->

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)