DEV Community

Cover image for SwiftUI — Exploring NavigationStack and Making it Useful
Raksha for Canopas Software

Posted on

SwiftUI — Exploring NavigationStack and Making it Useful

In this blog post explore how to use NavigationStack of SwiftUI.

We'll introduce you to SwiftUI's navigation stack and will compare it with NavigationView, and will show you how it's better compared to NavigationView.

We will also explore 5 scenarios that cover 95% of use cases. Feel free to jump around as needed.

Push screens: A ⮕ A — B
Pop last screen: A — B ⮕ A
Pop multiple screens: A — B — C — D ⮕ A — B
Pop to root: A — B — C — D ⮕ A
Update root: A ⮕ B

For full guide, visit canopas blog.

If you'd like to explore more about us, here are the links:

Website: https://canopas.com/
Blog: https://blog.canopas.com/
Twitter: https://twitter.com/canopassoftware
GitHub: https://github.com/canopas

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay