---
title: NSWindow.HostingSheetRepresentation
framework: appkit
role: symbol
role_heading: Class
path: appkit/nswindow/hostingsheetrepresentation
---

# NSWindow.HostingSheetRepresentation

A class representing a SwiftUI view hosted in an AppKit sheet.

## Declaration

```swift
class HostingSheetRepresentation<Content> where Content : View
```

## Overview

Overview This is created and returned by beginSheet(content:completionHandler:) as a representation of the presented sheet. It can be used to change the root view of the sheet while presented or be used to programamtically dismiss the sheet from an AppKit context using endSheet(_:).

## Topics

### Instance Properties

- [rootView](appkit/nswindow/hostingsheetrepresentation/rootview.md)
