Wetterapi in iOS Swift 5
private let dataManager = DataManager(baseURL: API.AuthenticatedBaseURL)
Average Addax
private let dataManager = DataManager(baseURL: API.AuthenticatedBaseURL)
private func processWeatherData(data: Data, completion: WeatherDataCompletion) {
if let JSON = try? JSONSerialization.jsonObject(with: data, options: []) as AnyObject {
completion(JSON, nil)
} else {
completion(nil, .InvalidResponse)
}
}