Stan Ostrovskiy
1 min readMay 26, 2017

--

Please check out the updated version of this tutorial!

After reading the multiple responses and advice for the first part, I decided to add some major updates to the first part.

UITableViewController is changed to UIViewController with a TableView as a subview.

Now, ViewModel conforms to TableViewDataSource protocol. NumberOfRowsInSection, cellForRowAt, and numberOfSections are the part of ViewModel. This keeps the ViewController and ViewModel separated.

Please find the final updated project here.

Thanks everyone for the contribution!

--

--

Stan Ostrovskiy
Stan Ostrovskiy

No responses yet