Created
July 31, 2021 10:14
-
-
Save thatswiftguy/fa03355b99fabe0a6a5ef220d84e2e75 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
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