Type Alias

SLComposeViewControllerCompletionHandler

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

Declaration

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. Use the completionHandler property to set this handler.