Building a Weather Application From Scratch
Implementing the Day View Model
Everything's in place to populate the day view controller. Open DayViewModel.swift. Press the Option key and select DayViewController.swift to open it in the Assistant Editor on the right. Implementing the
DayViewModel struct is surprisingly straightforward. We first need to inspect the
DayViewController class and figure out what type of data the view model needs to provide to populate its user interface.
Are you ready to step up your game?
Cocoacasts Plus helps Swift and Cocoa developers take their education serious without being overwhelmed.