<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SharedWithYou",
  "identifier" : "/documentation/SharedWithYou/SWCollaborationBarButtonItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Shared with You"
    ],
    "preciseIdentifier" : "c:objc(cs)SWCollaborationBarButtonItem"
  },
  "title" : "SWCollaborationBarButtonItem"
}
-->

# SWCollaborationBarButtonItem

A bar button item that presents collaboration content and options.

```
@MainActor class SWCollaborationBarButtonItem
```

## Topics

### Customizing the manage button

[`var manageButtonTitle: String`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/manageButtonTitle)

The title of the built-in button that manages a share.

[`var showManageButton: Bool`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/showManageButton)

A Boolean value that indicates whether the item shows the built-in button that manages a share.

### Customizing the participant display

[`var showsParticipantCount: Bool`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/showsParticipantCount)

A Boolean value that indicates whether the item shows the participant count.

### Customizing the cloud-sharing behavior

[`var cloudSharingControllerDelegate: (any UICloudSharingControllerDelegate)?`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/cloudSharingControllerDelegate)

The delegate for the sharing controller that the button that manages the share presents.

### Initializers

[`init(itemProvider: NSItemProvider)`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/init(itemProvider:))

### Instance Properties

[`var activeParticipantCount: Int`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/activeParticipantCount)

[`var detailViewListContent: UIView?`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/detailViewListContent)

[`var pendingAccessRequestsCount: Int`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/pendingAccessRequestsCount)

### Instance Methods

[`func dismissPopover(animated: Bool, completion: (() -> Void)?)`](/documentation/SharedWithYou/SWCollaborationBarButtonItem/dismissPopover(animated:completion:))

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

### Inherits From

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

---

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)