arkilis
4/14/2017 - 12:15 AM

iOS URL Schemes Swift

iOS URL Schemes Swift

// Make a phone call
UIApplication.shared.openURL(URL(string: "tel:12125551212")!)

// Open an url using default brower Safari
UIApplication.shared.openURL(URL(string: "http://www.arkilis.me")!)

// Send an email by calling Email app
UIApplication.shared.openURL(URL(string: "mailto:arkilis@gmail.com")!)

// Send a SMS
UIApplication.shared.openURL(URL(string: "sms:0400000000")!)