<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SharedWithYou",
  "identifier" : "/documentation/SharedWithYou/SWCollaborationViewDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Shared with You"
    ],
    "preciseIdentifier" : "c:objc(pl)SWCollaborationViewDelegate"
  },
  "title" : "SWCollaborationViewDelegate"
}
-->

# SWCollaborationViewDelegate

A delegate object that the system notifies about changes to the collaboration popover state.

```
protocol SWCollaborationViewDelegate : NSObjectProtocol
```

## Topics

### Responding to popover activity

[`func collaborationViewShouldPresentPopover(SWCollaborationView) -> Bool`](/documentation/SharedWithYou/SWCollaborationViewDelegate/collaborationViewShouldPresentPopover(_:))

Asks the delegate whether the system can display the popover.

[`func collaborationViewDidDismissPopover(SWCollaborationView)`](/documentation/SharedWithYou/SWCollaborationViewDelegate/collaborationViewDidDismissPopover(_:))

Notifies the delegate after the system dismisses the popover.

[`func collaborationViewWillPresentPopover(SWCollaborationView)`](/documentation/SharedWithYou/SWCollaborationViewDelegate/collaborationViewWillPresentPopover(_:))

Notifies the delegate before the system presents the popover.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)