The Coordinator Pattern: A Simple, Scalable Solution for iOS App Navigation

Flatten Your Navigation Tree and elevate Your iOS App’s Navigation to the Next Level with the Coordinator Pattern

Brahim Siempay
iOS Senior Tips
Published in
4 min readDec 24, 2022

--

Photo by Csaba Balazs on Unsplash

What is a Coordinator?

The coordinator pattern is a design pattern that can be used to manage the navigation and flow of an iOS app. It involves creating a coordinator object that is responsible for managing the navigation between different views in the app and coordinating the communication between those views.

Why use it at all?

One of the main benefits of using the coordinator pattern is that it can help to flatten the navigation tree of an iOS app. In a traditional iOS app, the navigation between views is often managed using a hierarchy of view controllers, with each view controller having a reference to the next one in the hierarchy. This can lead to a deep and complex navigation tree, which can be difficult to understand and maintain.

Case study demo

Here's a case study demonstrating how the coordinator pattern can be used to manage the navigation and flow of an iOS app.

--

--