Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func loadWeather(woeid: Int) -> [Weather]?
- {
- var weatherItems : [Weather]?
- CityAPI.weatherOnEarthID(woeid: woeid){
- response, error in if let results = response?.consolidatedWeather{
- weatherItems?.append(contentsOf: results)
- }
- }
- return weatherItems
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement