comparison GeoQuiz/Logic/CityModel.swift @ 19:f140bb277c96

refactor code
author Dennis C. M. <dennis@denniscm.com>
date Sun, 23 Oct 2022 00:11:38 +0100
parents a793f33f05fb
children
comparison
equal deleted inserted replaced
18:d20cf93c9812 19:f140bb277c96
5 // Created by Dennis Concepción Martín on 29/9/22. 5 // Created by Dennis Concepción Martín on 29/9/22.
6 // 6 //
7 7
8 import Foundation 8 import Foundation
9 9
10 struct CityData: Codable { 10 struct CityModel: Codable {
11 let cities: [String: City] 11 let cities: [String: City]
12 12
13 struct City: Codable, Equatable { 13 struct City: Codable, Equatable {
14 let country: String 14 let country: String
15 let lat: Double 15 let lat: Double