---
title: "windowForSharingRequest(from:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindowdelegate/windowforsharingrequest(from:)"
---

# windowForSharingRequest(from:)

Method called to get the window to share once sharing is confirmed, after a request is initiated by requestSharingOfWindowUsingPreview:title:completionHandler:. Implement this on the delegate of the requesting window

## Declaration

```swift
@MainActor optional func windowForSharingRequest(from window: NSWindow) -> NSWindow?
```
