---
title: SceneLaunchBehavior
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/scenelaunchbehavior
---

# SceneLaunchBehavior

The launch behavior for a scene.

## Declaration

```swift
struct SceneLaunchBehavior
```

## Overview

Overview Use the defaultLaunchBehavior(_:) modifier to apply a value of this type to a Scene you specify in your App. The value you specify determines how the system will present the scene in the absense of any previously restored scenes on launch of your application. For example, you may wish to present a welcome window on launch of your app when there are no previous document windows being restored: @main struct MyApp: App {     var body: some Scene {         DocumentGroup(newDocument: MyDocument()) { configuration in             DocumentEditor(configuration.$document)         }

Window("Welcome to My App", id: "welcome") {             WelcomeView()         }         .defaultLaunchBehavior(.presented)     } }

## Topics

### Type Properties

- [automatic](swiftui/scenelaunchbehavior/automatic.md)
- [presented](swiftui/scenelaunchbehavior/presented.md)
- [suppressed](swiftui/scenelaunchbehavior/suppressed.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring window visibility

- [WindowVisibilityToggle](swiftui/windowvisibilitytoggle.md)
- [defaultLaunchBehavior(_:)](swiftui/scene/defaultlaunchbehavior(_:).md)
- [restorationBehavior(_:)](swiftui/scene/restorationbehavior(_:).md)
- [SceneRestorationBehavior](swiftui/scenerestorationbehavior.md)
- [persistentSystemOverlays(_:)](swiftui/scene/persistentsystemoverlays(_:).md)
- [windowToolbarFullScreenVisibility(_:)](swiftui/view/windowtoolbarfullscreenvisibility(_:).md)
- [WindowToolbarFullScreenVisibility](swiftui/windowtoolbarfullscreenvisibility.md)
