Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source Library For Visualizing Table View And Collection View Changes With Animations


One of the issues with updating results in a table view or collection view is that it can be difficult to visualize to the user exactly what has changed.

Here’s an open source library that makes it easier to visualize changes to a UITableView or UICollectionView called Doppelganger submitted by Sasha Zats.

To use Doppelganger you take your old datasource and provide the new datasource to the library choose how you’d like to animate the changes.

This source code example from the readme shows how it’s done:

NSArray *oldDataSource = self.dataSource;
self.dataSource = [self _updatedDataSource];
NSArray *diffs = [WMLArrayDiffUtility diffForCurrentArray:self.dataSource
[self.tableView wml_applyBatchChanges:array

This animation shows the included Doppleganger example in action:

You can find Doppelganger on Github here.

A nice library to make it easier for the user to pick up on updated table view and collection view content.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.