---
title: SLComposeViewControllerCompletionHandler
framework: social
role: symbol
role_heading: Type Alias
path: social/slcomposeviewcontrollercompletionhandler
---

# SLComposeViewControllerCompletionHandler

Defines a handler to call when the user finishes composing a post.

## Declaration

```swift
typealias SLComposeViewControllerCompletionHandler = (SLComposeViewControllerResult) -> Void
```

## Discussion

Discussion The completion handler is called while the SLComposeViewController is still visible and it is responsible for dismissing the view controller. For the possible values of the result parameter, see SLComposeViewControllerResult. Use the completionHandler property to set this handler.

## See Also

### Processing the Results

- [completionHandler](social/slcomposeviewcontroller/completionhandler.md)
- [SLComposeViewControllerResult](social/slcomposeviewcontrollerresult.md)
