A Simple Markeyplace built using swiftUI
This App shows is a simple MarketPlace built using MVVM architecture and the power of Combine.
The main idea of the project is to implement Combine along with MVVM architecture with Swift UI.
There are 5 Main Classes:
This class represents the view of the main project, built using Swift UI, This View is subscribing or observing the Data from the View Model.
It is the ViewModel that interacts with the model.
It represents all the Data abstracted from the business in order to model it and expose to the ViewModel.
This is a usecase that has a "Published" variable which updates the data from the WebService, everytime there is a service call it is updated and passed to the view which is observing this changes.
Calls a restful GET web service to fetch the categories and products displayed.
©Iván Felipe García Sánchez