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