{"repo":"nalexn/clean-architecture-swiftui","free":true,"listed":false,"github":"https://github.com/nalexn/clean-architecture-swiftui","clone":"git clone https://github.com/nalexn/clean-architecture-swiftui.git","description":"SwiftUI sample app using Clean Architecture. Examples of working with SwiftData persistence, networking, dependency injection, unit testing, and more.","language":"Swift","stars":6590,"topics":["swiftui","swift","architecture","clean-architecture","cleanarchitecture","example-project","swiftui-example","mvvm","interactor","sample"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Articles related to this project Clean Architecture for SwiftUI Programmatic navigation in SwiftUI project Separation of Concerns in Software Design --- Clean Architecture for SwiftUI + Combine A demo project showcasing the setup of the SwiftUI app with Clean Architecture. The app uses the restcountries.com REST API to show the list of countries and details about them. Check out mvvm branch for the MVVM revision of the same app. For the example of handling the authentication state in the app, you can refer to my other tiny project that harnesses the locks and keys principle for solving this problem. Key features End of 2024 update: the project was fully revamped to use modern iOS stack technologies Decoupled Presentation , Business Logic , and Data Access layers Programmatic navigation. Push notifications with deep link Redux-like centralized AppState as the single source of truth Native SwiftUI dependency injection Handling of the system events (such as didBecomeActive , willResignActive ) Full test coverage, including the UI (thanks to the ViewInspector) Simple yet flexible networking layer built on async - await UI - vanilla SwiftUI + Combine Data persistence with SwiftData Architecture overview Presentation Layer SwiftUI views that contain no business logic and are a function of the state. Side effects are triggered by the user's actions (such as a tap on a button) or view lifecycle event onAppear and are forwarded to the Interactors . State and business logic layer ( App","default_branch":null,"files":null,"tree":[],"storefront":"/r/nalexn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nalexn/clean-architecture-swiftui/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}