Skip to content

darrarski/tca-swiftui-navigation-demo

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

SwiftUI Navigation with Composable Architecture

Swift v5.3 platforms iOS test coverage 95%

πŸ“ Description

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
navigation in demo app

πŸ›  Tech stack

The project contains unit and snapshot tests. Reference images for snapshot tests were recorded using iPhone 12 simulator.

β˜•οΈ Do you like the project?

Buy Me A Coffee

πŸ“„ License

Copyright Β© 2021 Dariusz Rybicki Darrarski

License: MIT

About

Demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture

Topics

Resources

License

Stars

Watchers

Forks