Commit graph

102 commits

Author SHA1 Message Date
Antonio081014
cb8e0aba4a Minor fix for example.
Summary:
`SingleSectionStoryboardViewController` class should be used rather using `SingleSectionViewController` class twice in `DemosViewController` class

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/220

Differential Revision: D4204505

Pulled By: rnystrom

fbshipit-source-id: d70922d57943eab5275af1b939176307c8c3cbeb
2016-11-18 06:58:54 -08:00
Ryan Nystrom
87f02e8ca7 Unit test cell selection, display, and scroll dragging events
Summary:
Fixes #192, #193

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/219

Reviewed By: rnystrom

Differential Revision: D4201039

Pulled By: jessesquires

fbshipit-source-id: 39cd7d712d1ebef52c0ec3e148f532d5f62e56c8
2016-11-17 20:13:56 -08:00
Ryan Nystrom
24174dcbf6 Unit test moves in containers
Summary:
Unit testing moves in sets so their `hash` and `isEqual` functions provide uniqueness.

Fixes #187, #188

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/217

Differential Revision: D4201042

Pulled By: jessesquires

fbshipit-source-id: 9c4803ca11e04bb86a7745d6ebc63d173e8ac814
2016-11-17 18:59:00 -08:00
Jesse Squires
d6cae084bb Fix travis-ci
Summary:
I optimistically updated to Xcode 8.1 for travis.

Builds are failing 😢

Fix it. Close #214

~~Let's revert back to 8 and I'll dig into this later. Follow-up: #214~~
Closes https://github.com/Instagram/IGListKit/pull/215

Differential Revision: D4202729

Pulled By: jessesquires

fbshipit-source-id: 02439a0084565eb065a7d647c8c41c36c7464a0a
2016-11-17 18:14:01 -08:00
Suraya Shivji
e2fbb68670 Swap NSUInteger to NSInteger Public API
Summary:
Swapped NSUInteger to NSInteger in public headers. Fixed a test in IGListSectionMapTests.m to pass with NSInteger. For issue #200!

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/205

Differential Revision: D4191521

Pulled By: rnystrom

fbshipit-source-id: 3f15c5ee3f8ed2d382de2602912a2e998bfbcbba
2016-11-16 15:28:59 -08:00
Sherlock
1e7fa064ab Update links to new path
Summary:
- Fixed broken links in README.md and CHANGELOG.md
- Also updated to use relative links

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/212

Differential Revision: D4192912

Pulled By: rnystrom

fbshipit-source-id: 991e0637ce36772801f3c4ab6146980f2930973d
2016-11-16 15:13:57 -08:00
Jesse Squires
879260b417 internal diff for PR #209
Summary: https://github.com/Instagram/IGListKit/pull/209

Reviewed By: rnystrom

Differential Revision: D4190633

fbshipit-source-id: 9d382b9ba3f3d20c8b9c48d900650ec354bc9728
2016-11-16 12:44:19 -08:00
Ayush Saraswat
1f40dfcab7 Add -[IGListAdapter objectForSectionController:] helper method -- iss…
Summary:
Add -[IGListAdapter objectForSectionController:] helper method

Fixes #201

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/204

Differential Revision: D4189648

Pulled By: rnystrom

fbshipit-source-id: 75963dafef1a2905311e8edf6e98e99e5ab90061
2016-11-16 08:29:05 -08:00
Sherlock
19280d27b3 Created tvOS Example Pack
Summary:
- Created a new workspace for tvOS examples w/ Cocoapods & dependency on IGListKit
- Created a demo chooser across the same lines as the iOS equivalent
- Duplicated the 'Nested Adapter' example from iOS pack to the tvOS example
  - Uses native navigation to get around, created focus/active states for cells
- Updated `travis.yml` to optionally build tvOS example pack

Note: Not added any imagery/icons/etc due to the much larger & different sizes required - If they're desired then someone with skills will need to provide them!

Closes #138
Relates to #137
- [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/141

Differential Revision: D4189645

Pulled By: rnystrom

fbshipit-source-id: 7a2b8e7a50ed2a9bbbf68d5f446a4e0077214ffa
2016-11-16 08:14:30 -08:00
Jesse Squires
204f7d5390 Docs updates and refinements, #181
Summary:
Did a full pass on documentation.

- Clean up
- Fixes
- Better markdown

> **NOTE:** this PR does not re-gen docs. I will do that next. Before we cut 2.0
Closes https://github.com/Instagram/IGListKit/pull/198

Reviewed By: rnystrom

Differential Revision: D4181253

Pulled By: jessesquires

fbshipit-source-id: 133c4af392bb396ecc6eff0c895c55e6d18730b7
2016-11-15 11:44:10 -08:00
Jesse Squires
0f2a715703 Update CHANGELOG.md
Summary:
Minor updates to CHANGELOG
Closes https://github.com/Instagram/IGListKit/pull/197

Differential Revision: D4175630

Pulled By: rnystrom

fbshipit-source-id: 7d11dcbe85550edbcb48c9933142750e2ec32986
2016-11-14 07:14:20 -08:00
Ryan Nystrom
8ea5e08880 Add edge-case unit tests
Summary:
- Removed dead code in batch data and updater
- Tested updating with empty index sets
- Tested updating with not-found section controller
- Tested reloading when collection view or data source are not set
- Tested `-[IGListAdapter sectionForObject:]`
- Tested index path return for not-found section controller
- Tested pointer comparison with `NSObject+IGListDiffable` category

Fixes #190, #189

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/191

Differential Revision: D4172781

Pulled By: rnystrom

fbshipit-source-id: c25cc917e9a1ebc5fc94fa022e01f99c80c2466c
2016-11-12 09:59:10 -08:00
Ryan Nystrom
715773476e Add display delegate example
Summary:
Adds a new example. Fixes #159

- [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/194

Differential Revision: D4172780

Pulled By: rnystrom

fbshipit-source-id: 34e1eaef03bb6564445f30dc2fe2b015bb276b6a
2016-11-12 09:29:18 -08:00
Bofei Zhu
313fa9e370 Unit test -[IGListAdapter scrollToItem:...]
Summary:
- [x] Vertical/horizontal scrolling
- [x] No supplementary view
- [x] Single supplementary view
- [x] Multiple supplementary views
- [x] Item not in feed
- [x] Empty feed
Closes https://github.com/Instagram/IGListKit/pull/179

Differential Revision: D4166911

Pulled By: rnystrom

fbshipit-source-id: 08a0fcf8259df97265b8938248e08f7a23a38a0e
2016-11-11 06:59:10 -08:00
Ryan Nystrom
ab890fc607 Change equality API to avoid NSObject override
Summary:
Changing the API to avoid overiding `-[NSObject isEqual:]` because of the side effects it brings (e.g. `-hash`). Not to mention the problems with Swift 2.3.

Fixes #65.

Reviewed By: jessesquires

Differential Revision: D4138570

fbshipit-source-id: 804af6c468c4c273adb73377e9bfda22515121d1
2016-11-10 16:59:02 -08:00
Ryan Nystrom
8230bb221f Fix project settings so example can build on device
Summary:
Not sure if this is correct, but making sure that "Automatically manage signing" is checked re-enabled building on device.

<img width="489" alt="screen shot 2016-11-06 at 4 26 29 pm" src="https://cloud.githubusercontent.com/assets/739696/20041877/da864bd4-a43d-11e6-93de-28a589803cde.png">

- [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/167

Differential Revision: D4160464

Pulled By: rnystrom

fbshipit-source-id: a8d3e33cf5c788048df077faafada74a9c038657
2016-11-10 11:14:18 -08:00
Bofei Zhu
6a53eaebce Change all @discussion to @note
Summary:
Fix #171
Closes https://github.com/Instagram/IGListKit/pull/182

Differential Revision: D4160454

Pulled By: rnystrom

fbshipit-source-id: aeedcf9646bcbfd31f8cab3937dcc5e9a486d5b6
2016-11-10 10:14:49 -08:00
Ryan Nystrom
1950abad4f Example using self sizing cells
Summary:
Adding an example using self sizing cells (`estimatedSize` API of `UICollectionViewFlowLayout`) both in code and from cells in nibs. I assume cells in storyboards would follow the same AL design patterns as nibs, so I left out storyboards.

![simulator screen shot nov 8 2016 11 55 04 am](https://cloud.githubusercontent.com/assets/739696/20108568/7b37ba8c-a5aa-11e6-8323-4ee218e023f3.png)

Fixes #149

- [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/176

Differential Revision: D4156409

Pulled By: rnystrom

fbshipit-source-id: b0b6d0cc8f4a575ff9963d66bc0df605843d47fe
2016-11-09 15:29:19 -08:00
Valeriy Van
b5bc6802ed Minor dubious changes to swift example app:
Summary:
Changes if to guard;
Uses forEach instead of for loop.

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

Changes if to guard;
Uses forEach instead of for loop.
Closes https://github.com/Instagram/IGListKit/pull/178

Differential Revision: D4153631

Pulled By: rnystrom

fbshipit-source-id: 077a64f7c92a8d8acdb3626047b602b12a9ebe17
2016-11-09 09:31:15 -08:00
Bofei Zhu
379d68e5c1 Commit 1a92c15 breaks pbxproj
Summary:
Update project.pbxproj
Closes https://github.com/Instagram/IGListKit/pull/174

Differential Revision: D4147048

Pulled By: rnystrom

fbshipit-source-id: 03713030f5604839af3c64f64f3a700e08b3fa94
2016-11-08 06:29:05 -08:00
Ryan Nystrom
937780aa3e Update changelog with missing revs
Summary:
I like that we ref the PRs in the changelog. Updating the log with missing revs from internal diffs (no PRs).
Closes https://github.com/Instagram/IGListKit/pull/172

Differential Revision: D4143816

Pulled By: rnystrom

fbshipit-source-id: 57844b0724b11f461ccc6e675946ea04b128fa21
2016-11-07 16:29:04 -08:00
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
Ryan Nystrom
1a92c15b50 Return nil if accesing OOB section
Summary: Rare crashers that take `NSNotFound` from `sectionFor...` API and then immediately look up the object w/out checking for not found. Instead return nil.

Reviewed By: dshahidehpour

Differential Revision: D4142946

fbshipit-source-id: ca80f87729b5ee6699740de897d73b819d27d132
2016-11-07 15:44:23 -08:00
Ryan Nystrom
386ae07864 Add visibleObjects API
Summary: Adding this API to make querying visible objects a little easier. Fixes #164.

Reviewed By: dshahidehpour

Differential Revision: D4138472

fbshipit-source-id: 0136c39e17c72941b85284b7f3b5494b1ddabf68
2016-11-07 07:29:06 -08:00
Ryan Nystrom
8fa4001d15 Add supplementary source example
Summary:
Got around to adding a supplementary view source example.

Fixes #153 #163

![img_0197](https://cloud.githubusercontent.com/assets/739696/20042159/03d2489e-a443-11e6-8d60-895256b56273.PNG)

- [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/169

Differential Revision: D4139910

Pulled By: rnystrom

fbshipit-source-id: 846c61c4d097392f18778d46044d4989e6bdf183
2016-11-07 06:44:29 -08:00
Ryan Nystrom
576ab4d1ff Remove NSIndexPath pretty print
Summary:
Saw this pop up in coverage reports. We don't log or assert `NSIndexPath` at all so this doesn't really seem necessary.

- [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/165

Differential Revision: D4138474

Pulled By: rnystrom

fbshipit-source-id: ad8375e47d1584f594d3df29f07a1d5d1a53f3c5
2016-11-06 12:44:10 -08:00
Ryan Nystrom
f5339113df Support supplementaryViews created from nibs (continued)
Summary:
Continuing the work on #90. I don't believe I can push directly to that PR since the origin is `master` of a repo I don't have access to.

https://help.github.com/articles/checking-out-pull-requests-locally/

I went ahead and added another supplementary view test copying the old one we had.

cc jessesquires in case there's something else I can do here. I believe this will still give rawlinxx credit?
Closes https://github.com/Instagram/IGListKit/pull/162

Differential Revision: D4137364

Pulled By: rnystrom

fbshipit-source-id: d8418ac5728fd6d9570fa1d1568f4343f5c4112b
2016-11-05 16:29:06 -07:00
Bofei Zhu
dca2478581 Clean pods
Summary:
Clean up the pods #152
Closes https://github.com/Instagram/IGListKit/pull/157

Differential Revision: D4137367

Pulled By: rnystrom

fbshipit-source-id: eafa7caf0804bb0bf7e3adc106b31959b5ebf8a7
2016-11-05 16:14:14 -07:00
Ryan Nystrom
cd6f8bce2a Remove reload data experiment
Summary: Another experiment with neutral results. Removing.

Reviewed By: jessesquires

Differential Revision: D4127194

fbshipit-source-id: cdafca161e0fec95cb35baad446929a03bb1cf4c
2016-11-03 16:29:32 -07:00
Ryan Nystrom
f682dfd45c Remove layout experiment
Summary: Experiment results were neutral. Removing.

Reviewed By: jessesquires

Differential Revision: D4127172

fbshipit-source-id: 1110ea1e0c08ad74f63840465f12be5b6b059c15
2016-11-03 16:29:31 -07:00
Shukhrat Tursunov
3e80402296 Fixed issue with Podfile in Example project
Summary:
Fixed issue with Podfile in Example project #152
Closes https://github.com/Instagram/IGListKit/pull/155

Differential Revision: D4124632

Pulled By: rnystrom

fbshipit-source-id: 9f825c500e776fe3a4cb8aad2ef6106bc3d76729
2016-11-03 08:44:12 -07:00
Valeriy Van
d34a8aa9a5 Implements isEqual func with guard statement
Summary:
Implements isEqual func with guard statement

- [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)
Closes https://github.com/Instagram/IGListKit/pull/151

Differential Revision: D4120016

Pulled By: rnystrom

fbshipit-source-id: a769071f788b1acc1f2fade5606859a5d91f1bfd
2016-11-02 14:14:01 -07:00
Valeriy Van
5d55f675ca Removes exsessive casting in unit test.
Summary:
Removes exsessive casting in unit test.

- [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)
Closes https://github.com/Instagram/IGListKit/pull/150

Differential Revision: D4115391

Pulled By: rnystrom

fbshipit-source-id: 10048491f074ad69d5095ea8d9271f47d3677202
2016-11-01 17:59:05 -07:00
Bofei Zhu
158d04ebe0 Support supplementaryViews created from storyboard
Summary:
Miss this in the previous PR #92. Will add unit test soon.
Closes https://github.com/Instagram/IGListKit/pull/123

Differential Revision: D4101594

Pulled By: rnystrom

fbshipit-source-id: 820030358532b0878f6d9e9092834266c9260a38
2016-11-01 10:59:21 -07:00
Bofei Zhu
9685f2ba06 Provide object in IGListSingleSectionController size block
Summary:
Fix #144
Closes https://github.com/Instagram/IGListKit/pull/147

Differential Revision: D4111495

Pulled By: rnystrom

fbshipit-source-id: 34d66e60a7e389da684239b6a6aa992cbcd3d9cd
2016-11-01 10:59:21 -07:00
Valeriy Van
c9ca112eef Applies trailing block syntax.
Summary:
Applies trailing block syntax.

- [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)
Closes https://github.com/Instagram/IGListKit/pull/148

Differential Revision: D4111506

Pulled By: rnystrom

fbshipit-source-id: b99f987f25579634a515786533d9ef2f2e4cd6bd
2016-11-01 10:59:21 -07:00
Sherlock
aba6e49132 Added example schemes for Today/iMessage extensions
Summary:
Offering this open to a bit of a discussion based on the comments at #77.
- Created two new schemes (IGListKitTodayExample, IGListKitMessageExample) in which respectively correspond to their app extension.
- Updated the Podfile to ensure they have IGListKit as a dependency
- Added a super simple example reusing the `LabelSectionController` from the main app

Done more as a 'yes it can be done' as opposed to 'look at what can be done' hence the basic functionality but I can see ways to improve if necessary!
- [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/112

Differential Revision: D4066698

Pulled By: rnystrom

fbshipit-source-id: 64c5cc6f34cc9107f4f6e52ebc57596101eb695c
2016-11-01 07:59:05 -07:00
Ryan Nystrom
9e8ad9626a Remove iOS 7 UICollectionView delegate API support
Summary: Don't need support for iOS 7 anymore, save some cycles on layout.

Reviewed By: ocrickard

Differential Revision: D4098229

fbshipit-source-id: eeaaf875acda1229f9622f11acc7c77ccad75cf0
2016-10-29 14:59:09 -07:00
Jesse Squires
e4a47193c1 Add tvOS support. Close #118
Summary:
Closes #118.

- Add tvOS framework + test targets
- Add shared scheme `IGListKit-tvOS`
- Update `Podfile` and `.podspec`
- Update `.travis.yml`
- Update `CHANGELOG`
- Update `README`
- Run `pod install` and check-in updates

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/137

Differential Revision: D4101583

Pulled By: rnystrom

fbshipit-source-id: f2736f16ad9f61ad5348c5e93571f3b752deec98
2016-10-29 14:44:11 -07:00
Jesse Squires
e207ae52bf Move contributing.md to .github. Close #114
Summary:
Move contributing.md to .github. Close #114
Closes https://github.com/Instagram/IGListKit/pull/136

Differential Revision: D4101580

Pulled By: rnystrom

fbshipit-source-id: b54cc9b0fe97b58bfd3914e7cc36859cadcbc0b7
2016-10-29 14:44:11 -07:00
Jake Lin
eca0205c26 Call copy method to avoid a potential issue for an NSString property
Summary:
According to rnystrom 's comment on #125 , we leave only two small changes in this PR.
1. Call copy method to avoid a potential issue for an `NSString` property.
2. fix a typo.

close #125

- [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/131

Differential Revision: D4095492

Pulled By: rnystrom

fbshipit-source-id: b162842a38850c826685efd0746022daabe9d2b8
2016-10-28 07:59:06 -07:00
Vinh Nguyen
a3d5c14a87 Add missing docs in IGListAdapterUpdaterDelegate
Summary:
- Add missing docs in `IGListAdapterUpdaterDelegate`, fix #128.

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/130

Differential Revision: D4095494

Pulled By: rnystrom

fbshipit-source-id: 49acb065b61e3837a9624a4d7e9b50fcd08351e8
2016-10-28 07:44:16 -07:00
Ayush Saraswat
ebd8801f90 Rename *ItemController unit tests to *SectionController
Summary:
Rename *ItemController unit tests to *SectionController, addressing issue #126

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/129

Differential Revision: D4095496

Pulled By: rnystrom

fbshipit-source-id: 277be38ed2789f14199cee9d711a838552921f10
2016-10-28 07:44:16 -07:00
Roman Klauke
348b11da4f reword some assertions with more informations
Summary:
This commit changes some assertion texts. No behavior is changed; no assertions are added (just reworded).  Some of them were short or contained no real meaningful informations, where the error probably is.

Ref: #113

- [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 have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/122

Differential Revision: D4090470

Pulled By: rnystrom

fbshipit-source-id: 96f492a1efd258ec3424ce334802229fdbdee191
2016-10-27 14:29:12 -07:00
Ryan Nystrom
b99776e5b5 Center and trim badges, add love to readme
Summary:
- Trimmed badges that I think are a little unnecessary
- Added a heart to the "made by"

cc jessesquires thoughts?

- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/117

Differential Revision: D4089119

Pulled By: rnystrom

fbshipit-source-id: ee9602fc5b7cb9bb004a624ffde89a5dc3c3e743
2016-10-27 10:14:04 -07:00
Jake Lin
d1003df845 Update the Swift code syntax for reflecting the current APIs for Swift.
Summary:
In this PR, we updated the Swift code syntax for reflecting the current APIs for Swift.

- [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/116

Differential Revision: D4089084

Pulled By: rnystrom

fbshipit-source-id: 9c90c2f6d5c52d202086a05efc3fe3b07da41ce3
2016-10-27 09:59:07 -07: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
94b92013ce Fix bad merge
Summary: Not sure why the build badge is green. Also need to get this to block landing internally.

Reviewed By: jessesquires

Differential Revision: D4084875

fbshipit-source-id: 67603f7db379f7311dc9c99d77c2e7ce08aff9b1
2016-10-26 16:44:03 -07:00
Ryan Nystrom
cf7cfb89df Add diffing example
Summary: Adding an example of how to use diffing by itself w/ `UITableView` batch updates.

Reviewed By: jessesquires

Differential Revision: D4077768

fbshipit-source-id: 313193cdcadd337e08f74e90713fa127a5365112
2016-10-26 11:59:13 -07:00
Ryan Nystrom
b5aa5e3900 Replace diff result API for batch updates
Summary:
Replacing the move+update API with a batch-updates-safe API on the diff results object. This makes using the diff results w/out the rest of IGListKit infra much easier when working with `UITableView` or `UICollectionView`.

- Added unit tests
- Removed outdated unit tests

Reviewed By: dshahidehpour

Differential Revision: D4065798

fbshipit-source-id: 30da8a7b483d56d5acc497da9320dc07a6d0b7ad
2016-10-26 11:59:13 -07:00