Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darrarski/tca-swiftui-navigation-demo
Demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture
https://github.com/darrarski/tca-swiftui-navigation-demo
composable-architecture example ios navigation swift-composable-architecture swiftui swiftui-example swiftui-navigation
Last synced: 9 days ago
JSON representation
Demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture
- Host: GitHub
- URL: https://github.com/darrarski/tca-swiftui-navigation-demo
- Owner: darrarski
- License: mit
- Created: 2020-11-18T00:58:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-11T00:09:59.000Z (over 3 years ago)
- Last Synced: 2024-11-20T01:33:08.529Z (23 days ago)
- Topics: composable-architecture, example, ios, navigation, swift-composable-architecture, swiftui, swiftui-example, swiftui-navigation
- Homepage:
- Size: 1.91 MB
- Stars: 92
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tca - SwiftUI Navigation with Composable Architecture
README
# SwiftUI Navigation with Composable Architecture
![Swift v5.3](https://img.shields.io/badge/swift-v5.3-orange.svg)
![platforms iOS](https://img.shields.io/badge/platforms-iOS-blue.svg)
![test coverage 95%](https://img.shields.io/badge/test%20coverage-95%25-success.svg)## 📝 Description
This is a demo project that shows how to implement navigation in SwiftUI iOS application using [Swift Composable Architecture](https://github.com/pointfreeco/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](https://github.com/darrarski/darrarski/blob/main/2021/04/Thoughts-on-SwiftUI-navigation/README.md).
|Navigation in demo app|
|:-:|
|[![navigation in demo app](Demo.gif)](Demo.mp4)|## 🛠 Tech stack
- [Xcode](https://developer.apple.com/xcode/) v12.4
- [Swift](https://swift.org/) v5.3
- [iOS](https://www.apple.com/pl/ios/) v14.4
- [ComposableArchitecture](https://github.com/pointfreeco/swift-composable-architecture) v0.17.0The project contains unit and snapshot tests. Reference images for snapshot tests were recorded using iPhone 12 simulator.
## ☕️ Do you like the project?
## 📄 License
Copyright © 2021 Dariusz Rybicki Darrarski
License: [MIT](LICENSE)