---
title: completionHandler
framework: social
role: symbol
role_heading: Instance Property
path: social/slcomposeviewcontroller/completionhandler
---

# completionHandler

The handler to call when the user is done composing a post.

## Declaration

```swift
var completionHandler: SLComposeViewControllerCompletionHandler! { get set }
```

## Discussion

Discussion The handler has a single parameter that indicates whether the user finished or cancelled composing the post. This block is not guaranteed to be called on any particular thread. Do not dismiss the SLComposeViewController in your completion handler—the system will do so automatically.

## See Also

### Processing the Results

- [SLComposeViewControllerCompletionHandler](social/slcomposeviewcontrollercompletionhandler.md)
- [SLComposeViewControllerResult](social/slcomposeviewcontrollerresult.md)
