---
title: completionWithItemsHandler
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiactivityviewcontroller/completionwithitemshandler-swift.property
---

# completionWithItemsHandler

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

## Declaration

```swift
var completionWithItemsHandler: UIActivityViewController.CompletionWithItemsHandler? { get set }
```

## Discussion

Discussion When the user-selected service finishes operating on the data, or when the user dismisses the view controller, the view controller executes this completion handler to let your app know the final result of the operation.

## See Also

### Accessing the completion handler

- [UIActivityViewController.CompletionWithItemsHandler](uikit/uiactivityviewcontroller/completionwithitemshandler-swift.typealias.md)
