In this episode, we test-drive the
The Presenter layer’s responsibility is to map game models to presentable models that are formatted and ready to be rendered by the views. This is a simple and elegant solution to remove formatting responsibilities from views and controllers, keeping the classes clean and short. That’s the essence of the Single Responsibility Principle, the S in SOLID.
It’s important to mention that since we want to deploy this game in multiple platforms, the Presenter layer doesn’t know about UIKit, so it can be reused in other platforms such as macOS and watchOS.
Watch it now and see how easy it is to test-drive this approach. Red-green-refactor. Red-green-refactor. Red-green-refactor!