<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentProperties/activityViewControllerProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDocumentProperties(py)activityViewControllerProvider"
  },
  "title" : "activityViewControllerProvider"
}
-->

# activityViewControllerProvider

A closure that provides an activity view controller for sharing the document.

```
var activityViewControllerProvider: (() -> UIActivityViewController)? { get set }
```

## Discussion

To support sharing, assign a closure that returns a [`UIActivityViewController`](/documentation/UIKit/UIActivityViewController) that you configure to share the document. When you set this property, a person can share the document by tapping the share button in the navigation item’s title menu.

---

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)