Skip to content

This is a Swift-based iOS app that uses the MVVM architecture pattern to display a list of products and their details.

Notifications You must be signed in to change notification settings

Nomi-ngj/SampleDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

SampleDemo

This is a Swift-based iOS app that uses the MVVM architecture pattern to display a list of products and their details.

Architecture The app follows the Model-View-ViewModel (MVVM) architecture pattern. The app's components include:

Model: The product model contains the properties of a product, such as name, description, price, and image. The app retrieves this data from a remote server using a data service.

View: The product list view displays a list of products using a table view. Each cell in the table view displays the name and image of the product. Tapping a cell navigates to the product detail view.

ViewModel: The product list view model fetches the product data from the data service and converts it into a format that the product list view can display. The product detail view model fetches the data for a specific product and formats it for the product detail view.

Binding: The product list view model binds the product list view with the product data. The product detail view model binds the product detail view with the product data, allowing the view to update with any changes.

Setup

To set up and run the app, follow these steps:

Clone the repository to your local machine. Open the project in Xcode. Install any dependencies by running pod install in the terminal. Build and run the app in the simulator or on a physical device. Testing The app includes unit tests for the view models. To run the tests, follow these steps:

Open the project in Xcode. Select the SampleDemoTests scheme. Press Cmd+U to run the tests.

Screenshots Demo

Product List

Logo

Product Details

Note Not sure why the image url's are not working in the detail screen.

Logo

About

This is a Swift-based iOS app that uses the MVVM architecture pattern to display a list of products and their details.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published