---
title: rootView
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/uihostingornament/rootview
---

# rootView

The root view of the SwiftUI view hierarchy managed by this ornament.

## Declaration

```swift
var rootView: Content { get set }
```

## See Also

### Creating a hosting ornament

- [init(sceneAnchor:contentAlignment:content:)](swiftui/uihostingornament/init(sceneanchor:contentalignment:content:).md)
