---
title: "init(rootScene:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/nshostingscenerepresentation/init(rootscene:)"
---

# init(rootScene:)

Creates a new hosting scene representation for the specified scene(s).

## Declaration

```swift
@MainActor init(@SceneBuilder rootScene: () -> Content)
```

## Parameters

- `rootScene`: The SwiftUI scene(s) to be represented.
