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.
Are you ready to step up your game?
Cocoacasts Plus helps Swift and Cocoa developers take their education serious without being overwhelmed.