This is a demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture. It uses NavigationLink
to push screens onto the navigation stack. App state is managed using Composable Architecture. It also contains logic responsible for handling long-living effects and dismissing the stack to the root view (pop-to-root).
Solutions used in this project are described in the article: Thoughts on SwiftUI navigation.
Navigation in demo app |
---|
- Xcode v12.4
- Swift v5.3
- iOS v14.4
- ComposableArchitecture v0.17.0
The project contains unit and snapshot tests. Reference images for snapshot tests were recorded using iPhone 12 simulator.
Copyright © 2021 Dariusz Rybicki Darrarski
License: MIT