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

# init(_:_:background:)

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

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

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