You can watch this episode by subscribing to Cocoacasts Plus.

Mastering MVVM With Swift

Adding Protocols to the Mix

In the previous episode, I mentioned that we are repeating ourselves in the tableView(_:cellForRowAt:) method of the SettingsViewController class. We can resolve this problem with protocol-oriented programming.

Instant and Unlimited Access
to 500+ Cocoacasts Tutorials


$19 / month

Pay Once a Month
30 Day Money Back Guarantee


$8.25 / month (billed annually)

Pay Once a Year and Save $129
30 Day Money Back Guarantee