Skip to content

azuredark/ADVATask

 
 

Repository files navigation

MVVM Playground, a photo showcase app.

CI Status codecov.io Code Coverage

This is a sample code for MVVM with dependency injection playground.

.
├── Module
│   ├── PhotoDetail
│   │   └── PhotoDetailViewController.swift
│   ├── PhotoListWithMVC
│   │   ├── PhotoListTableViewCellWithMVC.swift
│   │   └── PhotoListViewControllerWithMVC.swift
│   └── PhotoListWithMVVM
│       ├── PhotoListTableViewCell.swift
│       ├── PhotoListViewController.swift
│       └── ViewModel
│           ├── PhotoListCellViewModel.swift
│           ├── PhotoListViewModel.swift
│           └── State.swift
├── Service
│   ├── APIService.swift
│   └── content.json
├── Model
│   └── photo.swift

The app will run the PhotoListWithMVVM code by default, if you want to run the PhotoListWithMVC you should add the below files to MVVMPlayground Target (by checking the box in the target membership section for both files).

  • PhotoListTableViewCellWithMVC.swift
  • PhotoListViewControllerWithMVC.swift

and change the custom class of Photo List View Controller in the Main.storyboard to PhotoListTableViewCellWithMVC.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 97.0%
  • Ruby 3.0%