---
title: UIActivityViewController.CompletionHandler
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/uiactivityviewcontroller/completionhandler-swift.typealias
---

# UIActivityViewController.CompletionHandler

A completion handler to execute after the activity view controller is dismissed.

## Declaration

```swift
typealias CompletionHandler = (UIActivity.ActivityType?, Bool) -> Void
```

## Discussion

Discussion Upon the completion of an activity, or the dismissal of the activity view controller, the view controller’s completion block is executed. You can use this block to execute any final code related to the service. The parameters of this block are as follows:

## See Also

### Deprecated

- [completionHandler](uikit/uiactivityviewcontroller/completionhandler-swift.property.md)
