Mercurial > public > geoquiz
view GeoQuiz/Logic/CityModel.swift @ 21:b145c408f791
refactor code
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 25 Oct 2022 15:30:01 +0200 |
parents | f140bb277c96 |
children |
line wrap: on
line source
// // CityModel.swift // GeoQuiz // // Created by Dennis Concepción Martín on 29/9/22. // import Foundation struct CityModel: Codable { let cities: [String: City] struct City: Codable, Equatable { let country: String let lat: Double let lon: Double static func ==(lhs: City, rhs: City) -> Bool { lhs.country == rhs.country } } }