Created
June 9, 2017 01:14
-
-
Save sneakyness/fc4bcabb4f2bbf9dec52c151f1c9fac8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func queryItems(dict:[String:String]) -> [URLQueryItem] { | |
var items = [URLQueryItem]() | |
for (name, value) in dict { | |
items.append(URLQueryItem(name: name, value: value)) | |
} | |
return items | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But not quite what you're looking for