Building a Weather Application From Scratch
Creating a View Model
The root view controller is currently in charge of fetching weather data from the Dark Sky API. Having a view controller that performs network requests isn't uncommon if the project adopts the Model-View-Controller pattern. The current implementation of the
RootViewController class isn't complicated, but that can change as the project grows and evolves. It can eventually lead to a fat and overweight view controller. That's something we absolutely want to avoid.
Purchase Building a Weather Application From Scratch and access it whenever you want and for as long as you want.
Join Cocoacasts Plus and access every 350+ tutorials including Building a Weather Application From Scratch.