SwiftUI MVVM Clean Architecture Demo is a project designed to demonstrate how to build an app using SwiftUI while following the MVVM architecture pattern and Clean Architecture principles.
For demonstration purposes, this project uses the free API from Rick and Morty API.
A special thanks to the creators of the API!
MVVM (Model-View-ViewModel) is a design pattern that helps separate user interface (UI) development from business logic and behavior, resulting in more maintainable and testable code.
This project also demonstrates:
- Implementing a Coordinator using
NavigationDestinationandNavigationPath. - Creating Dependency Injection (DI) with the help of a
PropertyWrapper.
-
APIClient.swift
An API client class for fetching data from Rick and Morty API. -
ViewModel.swift
Manages and formats the data to be displayed in the views. -
Coordinator.swift
Handles navigation and flow logic usingNavigationDestinationandNavigationPath. -
DependencyInjectionContainer.swift
Implements Dependency Injection (DI) with thePropertyWrapper.
Diana Nareiko
Email: diananareiko8@gmail.com
GitHub: https://github.com/diananareiko
