Making a Real World Application With SwiftUI

1 min read Original article ↗

Part three: navigation and presentation

Thomas Ricouard

Press enter or click to view image in full size

Application navigation example

This story is the third part of a collection of articles about making a SwiftUI application. I recommend you to read part one and part two first; they’ll give you an overview of the application, its capabilities, features, and architecture.

In this article, we’ll see how the navigation and presentation flow works in SwiftUI. After almost ten years of development with the current UIKit model, this has been both a breath of fresh air and conceptually quite hard to grasp. In the end, it’s simple, you’ll just need to let go of any concept of a UIKit imperative way of doing navigation.

The first concept you need to lose is that every new full-featured view should be modal or pushed on the stack. This is important because SwiftUI is…