Inspired by Doppelganger written in Swift
- Removes confusion from users when data changes
- Animates moving, inserting and deleting rows/items
- Example
- Working with sections
Doppelganger-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Doppelganger-Swift"
Doppelganger-Swift is available through Carthage. To install it, simply add the following line to your Cartfile:
github "nahive/Doppelganger-Swift"
let oldDataSource = dataSource
dataSource = newDataSource
let diffs = NIArrayDiffUtility.diffForCurrentArray(dataSource, previousArray: oldDataSource)
tableView.ni_applyBatchChangesForRows(diffs!, inSection: 0, withRowAnimation: .Right)
If you found a bug, open an issue.
If you have a feature request, open an issue.
If you want to contribute, submit a pull request.
The source code is dedicated to the public domain. See the LICENCE.md
file for
more information.