How check webrequest is not http or https url in swift?
Solution:
Here we will check that our web request url contains the "tel" or something else except http or https.
In your webviewdelegate method you can write the below code and check.
Here we will check that our web request url contains the "tel" or something else except http or https.
In your webviewdelegate method you can write the below code and check.
let str = request.url?.absoluteString
if str?.startIndex.distance(to:str?.index(of: "tel")) != 0 {
}
Comments
Post a Comment