Created
June 18, 2019 08:12
-
-
Save bpisano/f49dca4b3ee4ef5d4d3751d6446c7aaf to your computer and use it in GitHub Desktop.
Embedded code in my Weather article on Medium
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 Weather: Codable { | |
| var current: HourlyWeather | |
| var hours: Weather.List<HourlyWeather> | |
| var week: Weather.List<DailyWeather> | |
| enum CodingKeys: String, CodingKey { | |
| case current = "currently" | |
| case hours = "hourly" | |
| case week = "daily" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment