<!--
{
  "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/SWCollaborationView",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Shared with You"
    ],
    "preciseIdentifier" : "c:objc(cs)SWCollaborationView"
  },
  "title" : "SWCollaborationView"
}
-->

# SWCollaborationView

A view that contains the collaboration content and options.

```
@MainActor class SWCollaborationView
```

## Overview

The system presents an `SWCollaborationView` that displays participants and sharing options to a collaborator. For CloudKit and iCloud Drive adopters, the collaboration view includes a manage button. The button brings up the manage user interface, where collaborators can add and remove participants or change the share settings.

## Topics

### Creating a collaboration view

[`-  initWithItemProvider:`](/documentation/SharedWithYou/SWCollaborationView/init(itemProvider:))

Creates and initializes a collaboration view.

### Accessing view attributes

[`activeParticipantCount`](/documentation/SharedWithYou/SWCollaborationView/activeParticipantCount)

The number of participants in a collaboration.

[`cloudSharingDelegate`](/documentation/SharedWithYou/SWCollaborationView/cloudSharingDelegate)

The delegate object for the cloud-sharing controller.

[`delegate`](/documentation/SharedWithYou/SWCollaborationView/delegate)

The delegate object for the collaboration view.

[`headerImage`](/documentation/SharedWithYou/SWCollaborationView/headerImage)

The image that the system displays in the header.

[`headerSubtitle`](/documentation/SharedWithYou/SWCollaborationView/headerSubtitle)

The subtitle that the system displays in the header.

[`headerTitle`](/documentation/SharedWithYou/SWCollaborationView/headerTitle)

The title that the system displays in the header.

[`manageButtonTitle`](/documentation/SharedWithYou/SWCollaborationView/manageButtonTitle)

The manage button title that the system displays in the header.

[`menuFormRepresentation`](/documentation/SharedWithYou/SWCollaborationView/menuFormRepresentation-3sffe)

Returns a menu item suitable to display the collaboration detail view from the toolbar overflow menu.

[`menuFormRepresentation`](/documentation/SharedWithYou/SWCollaborationView/menuFormRepresentation-55skx)

Returns a menu item suitable to display the collaboration detail view from the toolbar overflow menu.

### Setting view attributes

[`-  setContentView:`](/documentation/SharedWithYou/SWCollaborationView/setContent(_:))

Sets the content view.

[`setDetailViewListContent(_:)`](/documentation/SharedWithYou/SWCollaborationView/setDetailViewListContent(_:)-88gy5)

Sets the detail view for the list content.

[`setDetailViewListContent(_:)`](/documentation/SharedWithYou/SWCollaborationView/setDetailViewListContent(_:)-8ml1c)

Sets the detail view for the list content from view builder closures.

[`-  setShowManageButton:`](/documentation/SharedWithYou/SWCollaborationView/setShowManageButton(_:))

A Boolean value the system uses to show or hide the default manage-participants button in the collaboration popover.

### Dismissing the popover

[`-  dismissPopover:`](/documentation/SharedWithYou/SWCollaborationView/dismissPopover(_:))

Dismisses the popover.

### Customizing the cloud-sharing behavior

[`cloudSharingControllerDelegate`](/documentation/SharedWithYou/SWCollaborationView/cloudSharingControllerDelegate)

A reference to an object that conforms to the CloudKit sharing controller delegate protocol.

[`cloudSharingServiceDelegate`](/documentation/SharedWithYou/SWCollaborationView/cloudSharingServiceDelegate)

A reference to an object that conforms to the cloud-sharing service delegate protocol.

## Relationships

### Conforms To

[`UILargeContentViewerItem`](/documentation/UIKit/UILargeContentViewerItem)

[`UIResponderStandardEditActions`](/documentation/UIKit/UIResponderStandardEditActions)

[`UIPopoverPresentationControllerSourceItem`](/documentation/UIKit/UIPopoverPresentationControllerSourceItem)

[`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment)

[`CLBodyIdentifiable`](/documentation/CoreLocation/CLBodyIdentifiable)

[`NSAnimatablePropertyContainer`](/documentation/AppKit/NSAnimatablePropertyContainer)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`UIAppearance`](/documentation/UIKit/UIAppearance)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`UIAppearanceContainer`](/documentation/UIKit/UIAppearanceContainer)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`UIAccessibilityIdentification`](/documentation/UIKit/UIAccessibilityIdentification)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`UIPasteConfigurationSupporting`](/documentation/UIKit/UIPasteConfigurationSupporting)

[`NSDraggingDestination`](/documentation/AppKit/NSDraggingDestination)

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

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`UIFocusItemContainer`](/documentation/UIKit/UIFocusItemContainer)

[`UIFocusItem`](/documentation/UIKit/UIFocusItem)

[`UIActivityItemsConfigurationProviding`](/documentation/UIKit/UIActivityItemsConfigurationProviding)

[`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`UIUserActivityRestoring`](/documentation/UIKit/UIUserActivityRestoring)

[`UITraitChangeObservable-67e94`](/documentation/UIKit/UITraitChangeObservable-67e94)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`CMBodyIdentifiable`](/documentation/CoreMotion/CMBodyIdentifiable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

[`NSAppearanceCustomization`](/documentation/AppKit/NSAppearanceCustomization)

[`UICoordinateSpace`](/documentation/UIKit/UICoordinateSpace)

[`UIDynamicItem`](/documentation/UIKit/UIDynamicItem)

[`CALayerDelegate`](/documentation/QuartzCore/CALayerDelegate)

### Inherits From

[`NSView`](/documentation/AppKit/NSView)

[`UIView`](/documentation/UIKit/UIView)

---

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)