<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMailComposeViewController/insertCollaborationItemProvider(_:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "c:objc(cs)MFMailComposeViewController(im)insertCollaborationItemProvider:completionHandler:"
  },
  "title" : "insertCollaborationItemProvider(_:completionHandler:)"
}
-->

# insertCollaborationItemProvider(_:completionHandler:)

```
func insertCollaborationItemProvider(_ itemProvider: NSItemProvider, completionHandler: @escaping (Bool) -> Void)
```

```
func insertCollaborationItemProvider(_ itemProvider: NSItemProvider) async -> Bool
```

## Parameters

`itemProvider`

specifying the intended content for collaboration

## Discussion

\abstract Returns <tt>YES</tt> if the item provider was added to the composition successfully.
\discussion If the return value is YES, the itemProvider was added to the composition.  The itemProvider must be non-nil.

---

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)