Commit graph

3 commits

Author SHA1 Message Date
Bofei Zhu
59242c5b7e Add final to each class in Example
Summary: Closes https://github.com/Instagram/IGListKit/pull/173

Differential Revision: D4143811

Pulled By: rnystrom

fbshipit-source-id: 879ba9fa858648677fd2e3750bcf1815ac37ef18
2016-11-07 15:59:04 -08:00
Valeriy Van
e3ea1903f7 Minor changes in WorkingRangeSectionController.swift
Summary:
Uses trailing block syntax calling URLSession.shared.dataTask,
uses guard statement inside that block.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)

…uard statement inside that block.
Closes https://github.com/Instagram/IGListKit/pull/124

Differential Revision: D4088983

Pulled By: rnystrom

fbshipit-source-id: 8c88b486728d2b40e1ed3b1f4819cfc7c584cbc9
2016-10-27 09:44:10 -07:00
Ryan Nystrom
f6e088acd8 Working Range example
Summary:
Adding a working range example to the example app. This example:

- Displays a list of images downloaded from unsplash.it
- Create 20 uniquely-random sized objects
- When section controllers enter the range, create a data task to download the image
  - When finished, store image in `downloadedImage`
  - Set in cell if cell is visible
  - Don't create task if already downloaded or task created
- Cancel task when section controller is destroyed
- Show a spinner cell while downloading the image

Fixes #84

- [x] All tests pass. Demo project builds and runs.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/89

Differential Revision: D4050210

Pulled By: rnystrom

fbshipit-source-id: 628a777fa819dccd9d9f4f58646cdf72fb4bc65c
2016-10-19 23:29:12 -07:00