Basics of the MVVM pattern

The MVVM pattern involves three different components. You should be familiar with two of them:

What about UIViewControllers and NSViewControllers?

They belong to the View layer (think back to the previous chapter). We will inject ViewModels in either the views or theĀ viewControllers.