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