I\'m new to Swift programming (doing it for fun :)) and am stuck with trying to create a 3 component UIpickerview where each component changes its value based on the previous co
Create Country & City objects like below. Assign array of City to cities.
class Country {
var name: String
var cities: [City]
init(name:String, cities:[City]) {
self.name = name
self.cities = cities
}
}
class City {
var name: String
var posts: [String]
init(name:String, posts:[String]) {
self.name = name
self.posts = posts
}
}