<!--
{
  "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(_:_:background:backgroundAccessoryView:overlayAccessoryView:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24DocumentGroupLaunchSceneV__10background0G13AccessoryView07overlayhI0ACyxG10Foundation23LocalizedStringResourceV_xyXEqd__yXEqd_0_AA0cE13GeometryProxyVcqd_1_ALctcAA0I0Rd__AaMRd_0_AaMRd_1_r1_lufc::OverloadGroup"
  },
  "title" : "init(_:_:background:backgroundAccessoryView:overlayAccessoryView:)"
}
-->

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

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

```
@export(implementation) nonisolated init(_ title: LocalizedStringResource, @ContentBuilder _ actions: () -> Actions, @ContentBuilder background: () -> some View, @ContentBuilder backgroundAccessoryView: @escaping (DocumentLaunchGeometryProxy) -> some View, @ContentBuilder overlayAccessoryView: @escaping (DocumentLaunchGeometryProxy) -> some View)
```

## Parameters

`title`

A resource 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.

`overlayAccessoryView`

A content builder for returning the view’s
overlay accessory view.

## Discussion

Use a `DocumentGroupLaunchScene` alongside any [`DocumentGroup`](/documentation/SwiftUI/DocumentGroup) scenes.
If you don’t implement a `DocumentGroup` in the app declaration, you can
get the same design by implementing a [`DocumentLaunchView`](/documentation/SwiftUI/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)