Varun P V
Varun P V

Reputation: 1233

How to change the phone number format of call permission popup Swift

I am making a call to a number and it is working fine. Is there a way to change the number format of the permission asking popup in swift ?

Here is my code:

if let url = URL(string: "tel://\("
        8680047015 ")"),
    UIApplication.shared.canOpenURL(url) {
        if #available(iOS 10, *) {
            UIApplication.shared.open(url)
        } else {
            UIApplication.shared.openURL(url)
        }
    }

As of now the popup is as follows. I would like to change it to 868-004-7015.enter image description here.

While trying a US number, it is showing as 1234 - 567890. How formatting is happening?

Any help is really appreciated.

Upvotes: 2

Views: 386

Answers (0)

Related Questions