---
title: SceneRestorationBehavior
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/scenerestorationbehavior
---

# SceneRestorationBehavior

The restoration behavior for a scene.

## Declaration

```swift
struct SceneRestorationBehavior
```

## Overview

Overview Use the restorationBehavior(_:) scene modifier to apply a value of this type to a Scene you define in your App declaration. The value you specify determines how the system will restore windows from a previous run of your application. For example, you may have a scene that you do not wish to be restored on launch: @main struct MyApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }         Window(id: "network-test", "Network Connection Test") {             NetworkTestView()         }         .restorationBehavior(.disabled)     } }

## Topics

### Type Properties

- [automatic](swiftui/scenerestorationbehavior/automatic.md)
- [disabled](swiftui/scenerestorationbehavior/disabled.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)
- [SceneLaunchBehavior](swiftui/scenelaunchbehavior.md)
- [persistentSystemOverlays(_:)](swiftui/scene/persistentsystemoverlays(_:).md)
- [windowToolbarFullScreenVisibility(_:)](swiftui/view/windowtoolbarfullscreenvisibility(_:).md)
- [WindowToolbarFullScreenVisibility](swiftui/windowtoolbarfullscreenvisibility.md)
