Skip to content

A tutorial on using view models to drive UITableView's without having to manage IndexPath's

Notifications You must be signed in to change notification settings

aduuub/uitableviewdataflowtutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

How many times have you had to deal with the hassles of manually tracking IndexPath's for a UITableView? Or had an IndexPath related crash?

This is the final code from a medium tutorial https://medium.com/better-programming/how-to-never-have-to-track-a-uitableviews-indexpath-ever-again-a727be52003a on using view models to drive the data flow for UITableView's in iOS. It will walk you through how you can offload all of the manual index tracking of UITableView's and purely drive the data including animations and reloads from simple view models. This allows you to get animations like the following for free.

Deleting a cell with animation

Sample code preview

Inserting a cell

Inserting a cell with animation

Deleting a cell

Deleting a cell with animation

Stuck or have questions?

Reach out to me on Twitter @adam_wareing1

About

A tutorial on using view models to drive UITableView's without having to manage IndexPath's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages