view GeoQuiz/Models/CityPopulation.swift @ 3:4dbe0cd9dadc

first game prototype
author Dennis C. M. <dennis@denniscm.com>
date Thu, 22 Sep 2022 10:42:39 +0200
parents 413e2d21333e
children
line wrap: on
line source

//
//  CityPopulation.swift
//  GeoQuiz
//
//  Created by Dennis Concepción Martín on 7/9/22.
//

import Foundation

struct CityPopulation: Codable {
    let cities: [String: City]
    
    struct City: Codable {
        let country: String
        let population: [Population]
    }
    
    struct Population: Codable {
        let year: Int
        let value: Int
    }
}