//Here you can make method of calling functionality.
func callNumber(yourPhoneNumber:String) {
if let phoneCallURL = URL(string: "tel://\(yourPhoneNumber)") {
let application:UIApplication = UIApplication.shared
if (application.canOpenURL(phoneCallURL)) {
application.open(phoneCallURL, options: [:], completionHandler: nil)
}
}
}
Happy Coding :)
Comments
Post a Comment