Skip to content

Instantly share code, notes, and snippets.

View hawkfalcon's full-sized avatar
💭
👍

hawkfalcon hawkfalcon

💭
👍
View GitHub Profile
func makeGetCall() {
// Set up the URL request
let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1"
guard let url = URL(string: todoEndpoint) else {
print("Error: cannot create URL")
return
}
let urlRequest = URLRequest(url: url)
// set up the session