<!--
{
  "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:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24DocumentGroupLaunchSceneV_15backgroundStyle_0G13AccessoryViewACyxG10Foundation23LocalizedStringResourceV_qd__xyXEqd_0_AA0cE13GeometryProxyVctcAA05ShapeH0Rd__AA0J0Rd_0_r0_lufc::OverloadGroup"
  },
  "title" : "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.

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

## Parameters

`title`

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

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)