Skip to content

djangoearnhardt/MVVMDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVVMDemo

Fetch data, then present the data results with the Model-View-ViewModel design pattern.

The goal of this project is to refactor an existing MVC design pattern. This includes unit tests that mock network calls and confirm handling JSON.

The UITableViewCell was making business decisions about each data object and being passed a Course. The UITableViewCell now styles it's view (CourseView) and delegates button taps from decisions made in the CourseViewModel.

Features:

  1. Each cell is styled from the Course object it is handed
  2. The styling is done safely with an enum CourseName, adhering to the DRY principle
  3. Each cell's button recognizes which Course it interacts with, and presents an associated alert

About

Model-View-ViewModel Design Pattern Demonstration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages