swift url to string code example
Example: swift url encode string
var urlString = originalString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
var urlString = originalString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)