Chapter    27

The Model/View/Controller Pattern

The Model/View/Controller (MVC) pattern has become increasingly prevalent in recent years and underpins a lot of modern software development, including iOS app projects. In this chapter, I put the MVC pattern into context, explain why it is important, and describe how it relates to the other design patterns I have described in this book. Table 27-1 puts the MVC pattern into context.

Table 27-1. Putting the MVC Pattern into Context

Question

Answer

What is it?

The MVC pattern adds structure to an entire application rather than to an individual component.

What are the benefits?

The sections of an application can be developed, tested, and maintained more easily.

When should you use this pattern?

Use this ...

Get Pro Design Patterns in Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.