Skip to content

Instantly share code, notes, and snippets.

@thatswiftguy
Created July 31, 2021 10:14
Show Gist options
  • Save thatswiftguy/fa03355b99fabe0a6a5ef220d84e2e75 to your computer and use it in GitHub Desktop.
Save thatswiftguy/fa03355b99fabe0a6a5ef220d84e2e75 to your computer and use it in GitHub Desktop.
struct WeatherResponse : Decodable {
let name : String
let weather : [WeatherAPI]
let main : MainAPI
}
struct WeatherAPI : Decodable {
let description : String
}
struct MainAPI : Decodable {
let temp : Double
let pressure : Double
let humidity : Double
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment