title: SLServiceTypeTwitter’ is deprecated: first deprecated in iOS 11.0
body: <p>I am using <code>XCode 10.1</code> when trying to use <code>SLServiceTypeTwitter</code>, <code>SLServiceTypeFacebook</code> or any other social media ones, I get an error saying that they are <code>depricated since iOS 11.0</code>.</p>
  
  <p>I downloaded an old simulator that is running an older version to see if that fixes it but each time when I run the codes it brings up the simulator with latest <code>iOS</code> version (i.e. no Twitter login option).</p>
  
  <pre><code>@IBAction func cameraTapped(_ sender: UIBarButtonItem) {
      imagePicker.sourceType = .savedPhotosAlbum
      imagePicker.allowsEditing = false
  
      present(imagePicker, animated: true, completion: nil)
  }
  
  @IBAction func shareTapped(_ sender: UIButton) {
      if SLComposeViewController.isAvailable(forServiceType: SLServiceTypeTwitter) {
          let vc = SLComposeViewController(forServiceType: SLServiceTypeTwitter)
          vc?.setInitialText("My food is \(navigationItem.title!)")
          vc?.add(#imageLiteral(resourceName: "hotdogBackground"))
          present(vc!, animated: true, completion: nil)
  
      } else {
          self.navigationItem.title = "Please log in to Twitter"
      }
  }
  </code></pre>