a
Size: a a a
a
DK
И

DK
DK
И
DK
a
И
DK
Л
MB
SA
func parseFile<T>(parse fileName: String) throws -> [T] where T: Decodable {
guard let url = Bundle.main.url(forResource: fileName, withExtension: "json") else { throw // тут твоя ошибка }
do {
let jsonData = try Data(contentsOf: url)
let countriesList = try decoder.decode([T].self, from: jsonData)
return countriesList
} catch let error {
throw error
}
}Л
G
MB
Thread.sleep(forTimeInterval: 3) неробитF
A

DK
DK