title: The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported
body: <p>My code is</p>
  
  <pre><code>let idx = (self.tappedIndexPath?.row)!
  let pcs = self.sortedArray[idx]
  let urlW = URL(string: ("https://en.wikipedia.org/w/index.php?search=\(String(describing: pcs.name))".addingPercentEncoding(withAllowedCharacters: .urlHostAllowed))!)
  let svm = SFSafariViewController.init(url: urlW!)
  self.navigationController?.pushViewController(svm, animated: true)
  </code></pre>
  
  <p>is crashing for this error: </p>
  
  <blockquote>"The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported."</blockquote>
  
  <p>I do not understand the problem, my url is in https so why it is crashing? </p>