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, we
For Swift in iOS:
var url:NSURL? = NSURL(string: "tel://9809088798") UIApplication.sharedApplication().openURL(url!)