---
title: activityViewControllerProvider
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidocumentproperties/activityviewcontrollerprovider
---

# activityViewControllerProvider

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

## Declaration

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

## Discussion

Discussion To support sharing, assign a closure that returns a 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.
