16

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:

This animation shows the included Doppleganger example in action:

You can find Doppelganger on Github here.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">