Skip to content

Instantly share code, notes, and snippets.

@bpisano
Created June 18, 2019 08:12
Show Gist options
  • Select an option

  • Save bpisano/f49dca4b3ee4ef5d4d3751d6446c7aaf to your computer and use it in GitHub Desktop.

Select an option

Save bpisano/f49dca4b3ee4ef5d4d3751d6446c7aaf to your computer and use it in GitHub Desktop.
Embedded code in my Weather article on Medium
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