let sms = "sms:+1234567890&body=Hello Abc How are You I am ios developer." let strURL = sms.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)! UIApplication.shared.open(URL(string: strURL)!, options: [:], completionHandler: nil)