Last active
May 21, 2019 17:18
-
-
Save MaatheusGois/fb0436f48dcf155924646edcd178422e to your computer and use it in GitHub Desktop.
This file contains 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 postRequest(url: String, params: [String: String], | |
completion: @escaping ([String: Any]?, Error?) -> Void){ | |
// URL válida | |
guard let URL = URL(string: url) else { | |
completion(nil, nil) | |
return | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment