Once the user is happy with the city's information, he/she can also retrieve the weather forecast. As it was already mentioned, the weather forecast is going to be retrieved from Open Weather Map instead of geonames.
We just have to think about how this "scene" is going to work. The idea is to display weather information such as the date and time, the temperature, and an icon of the sun if it is during the day time or a moon when the estimated weather is during the night. If the table view cell needs to display rainy weather, we should use another cell template. This one should display the same information as the other cell, but with an exception that the icon will show rain. We are also going to display additional information on the amount of rain.
Once we have the idea clear, we can start implementing the view controller. Select the ViewControllers
group, add a new file called WeatherViewController.swift
, and start creating a class with the same name. As we discussed...