<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Social",
  "identifier" : "/documentation/Social/SLComposeViewControllerCompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Social"
    ],
    "preciseIdentifier" : "c:@T@SLComposeViewControllerCompletionHandler"
  },
  "title" : "SLComposeViewControllerCompletionHandler"
}
-->

# SLComposeViewControllerCompletionHandler

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

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

## 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`](/documentation/Social/SLComposeViewControllerResult). Use the [`completionHandler`](/documentation/Social/SLComposeViewController/completionHandler) property to set this handler.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)