view GeoQuiz/Models/CountryPopulation.swift @ 1:259a15f485c5

fix bug with NavigationLink
author Dennis C. M. <dennis@denniscm.com>
date Tue, 20 Sep 2022 11:53:54 +0200
parents 413e2d21333e
children
line wrap: on
line source

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

import Foundation

struct CountryPopulation: Codable {
    let countries: [String: Country]
    
    struct Country: Codable {
        let population: [Population]
    }
    
    struct Population: Codable {
        let year: Int
        let value: Int
    }
}