Skip to content

Instantly share code, notes, and snippets.

View jarrodnorwell's full-sized avatar
🏠
Working from home

Jarrod Norwell jarrodnorwell

🏠
Working from home
View GitHub Profile
import Foundation
struct Movie : Codable, Hashable {
// ...
}
struct MovieResults : Codable, Hashable {
let results: [Movie]
}
import Foundation
/*
WHY YOURS WASN'T WORKING
Line 320: Your URL is incorrect, it's missing the search in /1.0[/search/]setlists
Line 332: Setlist is not what is returned by the response (more below)
You can see that the response is the root dict and *setlist* is actually a key/value within.
- response
- setlist