---
title: body
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/wkusernotificationhostingcontroller/body
---

# body

The root view of the view hierarchy to display for your notification interface.

## Declaration

```swift
@MainActor @preconcurrency var body: Body { get }
```

## Discussion

Discussion Override this property and return the root view of your SwiftUI view hierarchy from your implementation. If you don’t override this property, accessing the default implementation triggers an exception.
