Fix broken image links in Modeling and Binding.md (#1348)

Summary:
## Changes in this pull request

Fix broken image links in `Modeling and Binding.md`

### Checklist

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1348

Reviewed By: joetam

Differential Revision: D16542309

Pulled By: joetam

fbshipit-source-id: 4b761d568b0b4d60d8caefd89c7f130cfb96123e
This commit is contained in:
Hanton Yang 2019-08-01 16:39:43 -07:00 committed by Facebook Github Bot
parent e240b748ac
commit e2fd2edda7

View file

@ -15,7 +15,7 @@ You can follow along and build the example in this guide. First, you must downlo
Take a look at the following Instagram-inspired list element design: Take a look at the following Instagram-inspired list element design:
![Design Specs](../Resources/modeling-design.png) ![Design Specs](https://raw.githubusercontent.com/Instagram/IGListKit/master/Resources/modeling-design.png)
You can already start mentally modelling your data: You can already start mentally modelling your data:
@ -234,7 +234,7 @@ You now have the following view models, which can all be derived from each `Post
Let's start using these models to power cells using `ListBindingSectionController`. This controller takes a top-level model (`Post`), asks its data source for an array of diffable view models (our view models above), then binds those view models to cells (provided in the starter project). Let's start using these models to power cells using `ListBindingSectionController`. This controller takes a top-level model (`Post`), asks its data source for an array of diffable view models (our view models above), then binds those view models to cells (provided in the starter project).
![Binding Flow](../Resources/binding-flow.png) ![Binding Flow](https://raw.githubusercontent.com/Instagram/IGListKit/master/Resources/binding-flow.png)
Create **PostSectionController.swift** and add the following code: Create **PostSectionController.swift** and add the following code:
@ -470,7 +470,7 @@ func listAdapter(
**Build and run** the sample app to see your post show up! **Build and run** the sample app to see your post show up!
![Working in the Simulator](../Resources/modeling-working.png) ![Working in the Simulator](https://raw.githubusercontent.com/Instagram/IGListKit/master/Resources/modeling-working.png)
## Handling Cell Actions ## Handling Cell Actions
@ -570,7 +570,7 @@ ActionViewModel(likes: localLikes ?? object.likes)
**Build and run** the app, tap on the heart button, and see your likes increment! **Build and run** the app, tap on the heart button, and see your likes increment!
<p align="center"> <p align="center">
<img src="../Resources/modeling-likes.gif" width=300 /> <img src="https://raw.githubusercontent.com/Instagram/IGListKit/master/Resources/modeling-likes.gif" width=300 />
</p> </p>
## Wrapping up ## Wrapping up