You can watch this episode by subscribing to Cocoacasts Plus.

Mastering MVVM With Swift

Rinse and Repeat

To adopt the Model-View-ViewModel pattern in the WeekViewController class, we first need to create a new view model. Create a new file in the View Models group and name the file WeekViewViewModel.swift.

Instant and Unlimited Access
to 400+ Cocoacasts Tutorials

Monthly

$19 / month

Pay Once a Month

Yearly

$8.25 / month (billed annually)

Pay Once a Year and Save 56%

Next Episode "Using MVVM In the Settings View"