title: Social Framework iOS 8 swift
body: <p>I've been writing an app that needs to use Social framework to share text via Twitter and Facebook.</p>
  <p>I got it to work but it did not dismiss (?), Then I remembered the completion handler, but whatever I do this handler keeps on giving me errors.</p>
  <pre><code>var okFacebook :Bool = SLComposeViewController.isAvailableForServiceType(SLServiceTypeFacebook)
  var okTwitter :Bool = SLComposeViewController.isAvailableForServiceType(SLServiceTypeTwitter)
  var okLinkedIn : Bool = SLComposeViewController.isAvailableForServiceType(SLServiceTypeLinkedIn)
  var socialVC :SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeTwitter)
          
  socialVC.completionHandler = SLComposeViewControllerCompletionHandler(SLComposeViewControllerResult) -&gt; Void
  self.presentViewController(socialVC, animated: true, completion: nil)
  </code></pre>