Skip to content

Commit

Permalink
Update image references in README
Browse files Browse the repository at this point in the history
  • Loading branch information
terwanerik authored Apr 28, 2022
1 parent 56abedc commit cde5289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SPM:

(See `./Tests/MMMArrayChangesTestCase.swift` for a more complete example on `diffUpdate()` and the iOS project in `./Example` on how to use `MMMArrayChanges` class to drive bulk animations of a `UITableView`.)

![Example GIF](./Example.gif)
![Example GIF](https://github.com/mediamonks/MMMArrayChanges/raw/main/Example.gif)

Imagine we are somewhere in a model representing a list of cookies updatable from a backend:

Expand Down Expand Up @@ -71,7 +71,7 @@ let apiResponse2: [CookieFromAPI] = [

Simple `map()` would not be enough and we would need to figure our which cookies in our API response correspond to which cookies in our current list. We would also need to handle new cookies and the ones that are not in the list anymore. Also, in case such a list is also linked to a `UITableView`, then we would need to generate updates/animations without breaking it (something that's quite hard to do in case of multi-item updates).

![Illustration](./Pic1.svg)
![Illustration](https://github.com/mediamonks/MMMArrayChanges/raw/main/Pic1.svg)

Enter `MMMArrayChanges` (ObjC-friendly and `UITableView`-compatible) or, for a simple Swift cases, a `diffUpdate()` extension on Array:

Expand Down

0 comments on commit cde5289

Please sign in to comment.