mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-21 00:08:22 +00:00
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:
parent
e240b748ac
commit
e2fd2edda7
1 changed files with 4 additions and 4 deletions
|
|
@ -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:
|
||||
|
||||

|
||||

|
||||
|
||||
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).
|
||||
|
||||

|
||||

|
||||
|
||||
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!
|
||||
|
||||

|
||||

|
||||
|
||||
## 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!
|
||||
|
||||
<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>
|
||||
|
||||
## Wrapping up
|
||||
|
|
|
|||
Loading…
Reference in a new issue