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

# rootView

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

## Declaration

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

## Discussion

Discussion Updating this property will immediately update the items array, even if the menu is currently visible to the user.
