Answers for "convert string to url swift"

2

urlencode string swift

let originalString = "test/test"
let escapedString = originalString.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)
print(escapedString!)
Posted by: Guest on February-06-2020
0

swift url encode string

var urlString = originalString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
Posted by: Guest on May-05-2020
-1

how to convert a url to string in swift

URL.absoluteString
Posted by: Guest on June-20-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language