April 2017
Intermediate to advanced
316 pages
9h 33m
English
We will have two viewModel, one for each ViewController:
import ReactiveCocoa struct TodosViewModel { let todos: [Todo] func todoForIndexPath(_ indexPath: IndexPath) -> Todo { return todos[indexPath.row] } }
We will use TodosViewModel to list Todo items in our table view:
struct TodoViewModel { let todo: Todo? }
We will use TodoViewModel to present each Todo item's details.
Read now
Unlock full access