Simple MVVM sample, consuming JSONPlaceholder, from typicode.com.
- Build
- Layout
- Discussion
- Todo
This project is build with Xcode Version 11.3 (11C29), using Swift 5.0, targetting iOS 11.0.
No dependencies are required.
There are four targets within this project:
CommonUtils
, simple helper extensions, helper classesSimpleTableViewController
, basic ViewController & ViewModel definitions for an MVVM-UITableView pair. Intended to be reusable.MenuDrivenSample
, the main focus of this program, demonstrating usage of an MVVM application.MenuDrivenSampleTest
, tests forMenuDrivenSample
using XCTest.
Todo: describe types of data from endpoint here:
Todo...?
-
Tests could use configuration, arrangement.
- currently code coverage for
MenuDrivenSample
is 12.5%.
- currently code coverage for
-
Adjust for more customizable reusable cells in
SimpleTableViewController
-
Add more to this README.
-
Add error-handling & recognition within a State-driven implementation.
-
Is there a more polymorphic way to handle
fetch(api:completion:)
inAPIService.swift
?