You can watch this episode by subscribing to Cocoacasts Plus.

Building a Weather Application From Scratch

Adding Flexibility With Protocols

At the end of the previous episode, I mentioned that I'm not quite happy yet with the implementation of the RootViewModel class. It passes an instance of the DarkSkyResponse struct to the RootViewController class via a completion handler. The RootViewController class still knows too much about the weather data and its origin.

Purchase Course

Purchase Building a Weather Application From Scratch and access it whenever you want and for as long as you want.

Join Cocoacasts Plus

Join Cocoacasts Plus and access every 350+ tutorials including Building a Weather Application From Scratch.

Next Episode "Creating the Day and Week View Models"