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
Swift 4 and above
let dialer = URL(string: "tel://5028493750") if let dialerURL = dialer { UIApplication.shared.open(dialerURL) }