title: How to use openURL for making a phone call in Swift?
body: <p>I have converted the code for making a phone call from Objective-C to Swift, but in Objective-C, we can set the type of the URL that we like to open (e.g. telephone, SMS, web) like this:</p>
  
  <pre><code>@"tel:xx"
  @"mailto:info@example.es"
  @"http://stackoverflow.com"
  @"sms:768number"
  </code></pre>
  
  <p>The code in Swift is:</p>
  
  <pre><code>UIApplication.sharedApplication().openURL(NSURL(string : "9809088798")
  </code></pre>
  
  <p>I read that have not released any scheme parameter for <code>tel:</code>, but I don't know if Swift can detect if the string is for making a phone call, sending email, or opening a website. Or may I write:</p>
  
  <pre><code>(string : "tel//:9809088798")
  </code></pre>
  
  <p>?</p>