Skip to content

Commit

Permalink
Adds NestedDiff to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wokalski committed Jan 1, 2017
1 parent dfefebc commit 37144e8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Documentation is available [here](http://wokalski.com/docs/Diff/)
- Arbitrary sorting of the `Patch`
- Utilities for `UITableView` and `UICollectionView` (if that's just what you want, [skip to examples](#how-to-use))
- ⚡️ [fast](#performance-notes)
- Diffing collections containing collections (use `NestedDiff`)

## Why would I need it?

Expand Down Expand Up @@ -71,7 +72,20 @@ tableView.animateRowChanges(

collectionView.animateItemChanges(
oldData: old,
newData: new)
newData: new,
completion: {_ in})

// Works with sections, too

tableView.animateRowAndSectionChanges(
oldData: old,
newData: new
)

collectionView.animateItemAndSectionChanges(
oldData: old,
newData: new
)

```

Expand Down

0 comments on commit 37144e8

Please sign in to comment.