351 Commits

Author SHA1 Message Date
Ryan Nystrom
854846921b Test for section controller retain cycles
Summary:
Saw our [retain cycle detector](https://github.com/facebook/FBRetainCycleDetector) fire for the `_objectTransitionBlock` in the adapter (t15355965) so I added a test. The test passes, so I don't think that is what's going on, but figured I'd submit the test anyways.

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

Differential Revision: D4398534

Pulled By: rnystrom

fbshipit-source-id: d5f07a1222c28553dbac66971a90731b2f1c397f
2017-01-10 11:14:02 -08:00
Weyert de Boer
fb4e823870 fix(385): Fixed a typo previuossectionMap -> previousSectionMap
Summary:
I have fixed the typo in the code `previuossectionMap` -> `previousSectionMap`. I don't think this change requires to be tested as it appears to be an internal class. Because of this it's not a breaking change so I don't think it needs to be reflected in CHANGELOG.md either.

Closes #385

- [X] All tests pass. Demo project builds and runs.
- [X] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] 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)
Closes https://github.com/Instagram/IGListKit/pull/386

Differential Revision: D4390915

Pulled By: rnystrom

fbshipit-source-id: 1b745daaa913361ad211318ea1e216a03fe6f741
2017-01-09 10:14:01 -08:00
Bofei Zhu
1b55215e60 Fix assert for #388
Summary:
Fixed #388

- [x] All tests pass. Demo project builds and runs.
- [ ] 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)
Closes https://github.com/Instagram/IGListKit/pull/391

Differential Revision: D4389116

Pulled By: rnystrom

fbshipit-source-id: 632fd4b4e723387e220589a3be06d59981b8c43c
2017-01-09 10:14:01 -08:00
Jesse Squires
c19379eeda Release 2.1.0 prep
Summary:
Prepping for `2.1.0`

- [x] Bump version numbers
- [x] Rebase this branch after remaining PRs are closed
- [ ] Run `pod install` (**must be done internally**)
- [x] Re-gen docs
Closes https://github.com/Instagram/IGListKit/pull/380

Reviewed By: rnystrom

Differential Revision: D4381222

Pulled By: jessesquires

fbshipit-source-id: 04646168d3c84d0dd2c08f0a357836b9326f8963
2.1.0
2017-01-04 10:14:37 -08:00
Adlai Holler
5fa588ee70 Make -[IGListAdapter updater] Public, Read-Only
Summary:
Hey IGListKit folks! Would you be willing to expose this, so that other objects that are given a list adapter can inspect its updater configuration?

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

Reviewed By: jessesquires

Differential Revision: D4379016

Pulled By: rnystrom

fbshipit-source-id: 4056457181fea31f71b1e928b60aec46160cc585
2017-01-03 16:59:02 -08:00
Jesse Squires
71ce9902ca Add allowsBackgroundReloading Flag to ListAdapterUpdater to Give User Control of Behavior
Summary:
Such a powerful framework y'all have made! Game status: changed.

- Add a flag to `ListAdapterUpdater` to require it to perform diffing, even when collection view is not in a window.
  - Ensures delegate can rely on diffing callbacks.
  - Ensures layout can rely on `prepareForCollectionViewUpdates:`.
  - Helps with support for AsyncDisplayKit that I'm working on ?

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

Differential Revision: D4377586

Pulled By: jessesquires

fbshipit-source-id: c48467ca5a02ab104d1e83b30430b14b186dbdd2
2017-01-03 10:44:04 -08:00
heshamsalman
0de9632c0d Fixes search in macOS example, close #371
Summary:
Changed the criteria for starting search in the OS X Example. Closes https://github.com/Instagram/IGListKit/issues/371

Doesn't look like there are tests for the example app. Please ping me if you'd like me to add some. Also, please ping me if you'd like me to add this change to the changelog -- I'm assuming bug fixes to sample apps don't get included there.

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

Differential Revision: D4374006

Pulled By: jessesquires

fbshipit-source-id: 6e20f61aece769240aa63c8949d3c06a0ecd26c8
2016-12-29 14:44:00 -08:00
Sherlock
a748e6f6c7 Changed minimum macOS deployment target to 10.10
Summary:
Worth noting that while we support 10.8 and newer, Swift support is only 10.9 and newer. There were only a few more errors for 10.9 deployment target, but I'm not familiar with how it all works.

Using an `available` to disable row actions for users on 10.10 (only available for 10.11 and newer).
Closes https://github.com/Instagram/IGListKit/pull/374

Differential Revision: D4372977

Pulled By: jessesquires

fbshipit-source-id: 19f4b50c8eb4aa92f80241d69c44a367e854f5e8
2016-12-29 11:13:57 -08:00
James Sherlock
5cd771b546 Added Subspec for Diffing
Summary:
So the main Podspec file now has two Subspecs, `Diffing` and for lack of better name `Default`. `Diffing` is purely the files within the common directories (used for Diffing, if in the future we support MacOS NSCollectionView then this may need changing). `Default` depends on `Diffing` but also adds all the non-common files.

To use it via CocoaPods, nothing changes. You `import IGListKit` and you will only have access to the files in the pod you use. (So if you use `IGListKit/Diffing` in your Podfile, then you will only get access to the diffing files). If you do a manual installation, or I assume via Carthage, then you will need to import the correct header file (either `IGListDiffKit.h` or `IGListKit.h` depending on what you want).

Turns out CocoaPods creates it's own umbrella header (unless you tell it otherwise) meaning our ones are unused by it.

Just to confirm `IGListKit` in your Podfile will give you everything, only if you add `/Diffing` will you "opt-out" o
Closes https://github.com/Instagram/IGListKit/pull/368

Differential Revision: D4367438

Pulled By: jessesquires

fbshipit-source-id: 272318ca551e7e8c4177ca3ca501fde23bd9705a
2016-12-27 12:44:27 -08:00
Sherlock
19d4f9d1f7 Added compatibility header
Summary:
- Added IGListCompatibility.h file, and imported it in the files where we need the target check.
- Ordered the project by type

In "IGListKit.h" we still have the conditional check for `#if TARGET_OS_EMBEDDED || TARGET_OS_SIMULATOR` - Did we want to make a macro or something for this check?

This is the most Obj-C I've ever done... just felt that was a worthy comment.

Closes #364

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

Differential Revision: D4366344

Pulled By: jessesquires

fbshipit-source-id: f0a6168b8965ded22a641814797fbdec92ca1c36
2016-12-24 10:44:25 -08:00
Jesse Squires
c6b65cfb8b Create RELEASE_CHECKLIST.md
Summary:
Probably a good idea to document this. 😄

Easy for new contributors to forget steps.

Putting in `.github/` so it doesn't clutter top-level dir.
Closes https://github.com/Instagram/IGListKit/pull/366

Differential Revision: D4365951

Pulled By: jessesquires

fbshipit-source-id: 63a135be0875d7cbd415586ed15c28353da25b9e
2016-12-23 13:44:00 -08:00
Jesse Squires
f896a8b187 Update CONTRIBUTING.md
Summary: Closes https://github.com/Instagram/IGListKit/pull/367

Differential Revision: D4365950

Pulled By: jessesquires

fbshipit-source-id: eb364ab216570ad485af804b88f5680811bbc19c
2016-12-23 13:44:00 -08:00
Ryan Nystrom
e9ad6b199e Working ranges in stacked section controllers
Summary:
Closes #354

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

Differential Revision: D4365718

Pulled By: jessesquires

fbshipit-source-id: 41d7bcd823415e5795a069a4ef335e60e7da806a
2016-12-23 08:29:14 -08:00
Bofei Zhu
c3c0e36144 Full width item crashes grid layout
Summary:
Fixed #352
Closes https://github.com/Instagram/IGListKit/pull/361

Differential Revision: D4365711

Pulled By: jessesquires

fbshipit-source-id: 344b0c781cc807e0ff0bf381a5b12eaef3388d72
2016-12-23 08:14:01 -08:00
James Sherlock
bfdc0383b7 Update Changelog for TBD
Summary: Closes https://github.com/Instagram/IGListKit/pull/363

Differential Revision: D4365710

Pulled By: jessesquires

fbshipit-source-id: 306c30915d3a331763d2bf76a977444a34618328
2016-12-23 07:59:06 -08:00
heshamsalman
4bb3bbd1a0 Updated osx_image to xcode8.2, close #334
Summary:
- Updated `osx_image` in Travis to `xcode8.2`, as in: https://github.com/Instagram/IGListKit/issues/334
- Doesn't require tests, as it'll either pass with no changes to the codebase or break CI. 🤷🏽‍♂️

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

Differential Revision: D4365178

Pulled By: jessesquires

fbshipit-source-id: 9b21ef59fbda819a3fccf2b0670870f287475e03
2016-12-22 19:44:31 -08:00
Ryan Nystrom
917acb8da8 Add changelog to PR template
Summary:
If anything will help me remember.
Closes https://github.com/Instagram/IGListKit/pull/359

Differential Revision: D4365179

Pulled By: jessesquires

fbshipit-source-id: e002bc6bc31f8d2af59a5d5303a2c5cb09d780b6
2016-12-22 19:44:31 -08:00
Jesse Squires
6d84f85dd0 Fix stacked section controller OOB when cell ends display
Summary:
Fixes bug reported internally. When items are removed dynamically the stack internal store will attempt to access data that has already been removed. Instead use assoc objects.

We did change `IGListAdapter` to [use a map](https://github.com/Instagram/IGListKit/blob/master/Source/IGListAdapter.m#L681) instead of assoc objects. That could be a good cleanup.

cc cdoncarroll

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

Differential Revision: D4363840

Pulled By: jessesquires

fbshipit-source-id: ef73b4302f88a15cbf70378421d702f7e2bddbd5
2016-12-22 14:44:10 -08:00
Ryan Nystrom
1b70435993 Add stacked section controller demo
Summary:
Adding a pretty basic stacked demo. 3 different sections, each with 3 child section controllers that handle an `Int` data.

Requires #354 to be fully functional (working range).

Closes #134

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

Differential Revision: D4363859

Pulled By: jessesquires

fbshipit-source-id: 5dbc8e18388fed4930f189e3477ff57f0edf2d13
2016-12-22 14:29:08 -08:00
Sherlock
2957ee5feb Print file name when searching for broken links
Summary:
Wasn't sure how to make it a one line wonder, so probably could be improved -- but slapped it into a while loops and print name before triggering the `markdown-link-check`.

Refers to https://github.com/Instagram/IGListKit/pull/344#issuecomment-268163911

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

Differential Revision: D4352870

Pulled By: jessesquires

fbshipit-source-id: df62c7c29c7236cba5a9163819c56247dd2d5070
2016-12-20 12:28:58 -08:00
Jesse Squires
efca5a7c54 Fix broken links, fix travis
Summary:
Caught by travis.
https://travis-ci.org/Instagram/IGListKit/jobs/185367790

Many thanks to Sherlouk for setting this up. 💯
Closes https://github.com/Instagram/IGListKit/pull/344

Differential Revision: D4351406

Pulled By: jessesquires

fbshipit-source-id: 385a3c5d738b1576a95812b9e4c598ea25773a78
2016-12-19 23:44:20 -08:00
Jesse Squires
4e42712e5b fixup common files and podspec, #270
Summary:
- Add missing common files
- Fix podspec for common files
- Pod install all examples

Reviewed By: rnystrom

Differential Revision: D4350871

fbshipit-source-id: 708ebe6ce66caed75af5b2ac18920dcf45567d16
2016-12-19 21:44:13 -08:00
Ryan Nystrom
4cc91a25c8 Prevent data source deallocation during async updates
Summary: Saw some crashes come in from out-of-sync objects and section controllers. After some digging I found that the nil-datasource assert was firing (not very frequently). Mostly happening on other VCs, probably from hitting the back button and an update arriving.

Reviewed By: jessesquires

Differential Revision: D4347862

fbshipit-source-id: 38c1a4816f5c109de41297309745ac2d5e348e93
2016-12-19 13:43:56 -08:00
Jesse Squires
57c9f84d28 Update CHANGELOG.md
Summary: Closes https://github.com/Instagram/IGListKit/pull/343

Differential Revision: D4347850

Pulled By: jessesquires

fbshipit-source-id: f2f9fc879579fc0dfdc7a5a1652dd71749e56447
2016-12-19 12:29:24 -08:00
Ryan Nystrom
ad30e53507 Move macOS and diffing files to Common dir
Summary:
Moving files to `Common` dir so changes are more automated with Buck and easier to manage in the long run. Ran `pod install` on test and example targets. Updated buck file to include `Common` so diffing lib still works.

Part of #270

Reviewed By: jessesquires

Differential Revision: D4346722

fbshipit-source-id: 366d89f6dd571b158b5fccd542080c51517ed341
2016-12-19 12:29:24 -08:00
Guilherme Rambo
47fbb72fa6 macOS example app
Summary:
Related issue: #333

I've made a very simple macOS example app. It's just a list of names which can be searched, shuffled or deleted.

I think this is a good starting point for anyone who wants to use this on macOS projects :)

![iglistkitmac](https://cloud.githubusercontent.com/assets/67184/21238494/7245f242-c2ea-11e6-98ea-218a6150d14c.gif)
Closes https://github.com/Instagram/IGListKit/pull/337

Reviewed By: rnystrom

Differential Revision: D4345236

Pulled By: jessesquires

fbshipit-source-id: ce75372263d3f451e34f2c816c14ab6bc82116a7
2016-12-19 10:59:03 -08:00
Ryan Nystrom
1765d68406 Invalidate layout when using reloadData
Summary:
Always invalidate the `collectionViewLayout` when calling `reloadData`. Turns out there are inconsistencies when layout attributes are queries/stored using `UICollectionViewFlowLayout` and `estimatedItemSize`.

Reproduced in unit test, fixed the test.

Closes #305

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

Differential Revision: D4329318

Pulled By: rnystrom

fbshipit-source-id: 91851f6ab170a416810712308727225404ad59ba
2016-12-15 12:14:13 -08:00
Jesse Squires
9600c23d15 run pod install everywhere, gen docs.
Summary:
- Project fixes for macOS support, #270
- Podspec fixes for macOS, #270
- Project test target fixes
- Pod install all examples
- Re-gen docs

Differential Revision: D4327169

fbshipit-source-id: bbe7896f8f50aaf3b8da03d0c21a0fb6f775c7cd
2016-12-14 14:44:10 -08:00
Jesse Squires
b52510559d Fix podspec for macOS support
Summary: Closes https://github.com/Instagram/IGListKit/pull/330

Differential Revision: D4327087

Pulled By: jessesquires

fbshipit-source-id: a63ad7770763d95de1333be130673732706b7e36
2016-12-14 09:44:08 -08:00
Jesse Squires
69c3cc73e7 macOS support follow-up work, #270
Summary:
Progress on #270.

- Setup basic, empty example project
- Setup test target and add tests that work for macOS
- Update changelog
- Update travis-ci
Closes https://github.com/Instagram/IGListKit/pull/328

Differential Revision: D4325876

Pulled By: jessesquires

fbshipit-source-id: 342963ce5103d3980c697655e1f1a9b6f3f1c520
2016-12-13 23:14:07 -08:00
Guilherme Rambo
3da0a6bf84 macOS support
Summary:
Added support for macOS. The macOS target includes only the core diffing functionality so `IGListDiff` can be used on macOS apps.

I have not added the tests because I don't know how you're setting them up, maybe the same tests can be used by adding some `#if os(...)`s to the test files.

I have tested integration on iOS, tvOS and macOS using both Carthage and Cocoapods.
Closes https://github.com/Instagram/IGListKit/pull/235

Differential Revision: D4325423

Pulled By: jessesquires

fbshipit-source-id: 871bf08410061306004872f5feb7a09d362b6bc1
2016-12-13 20:44:07 -08:00
Ryan Nystrom
f7e8bf1634 Fix sentence in readme
Summary:
Nits in the readme, not a full sentence.
Closes https://github.com/Instagram/IGListKit/pull/327

Differential Revision: D4325422

Pulled By: jessesquires

fbshipit-source-id: 6873aef68276107b793934b6b3e06d10fa10a8a4
2016-12-13 19:59:04 -08:00
Ryan Nystrom
86cb59a1f0 Fix changelog link
Summary:
Nit, attribution for svenbacia
Closes https://github.com/Instagram/IGListKit/pull/326

Differential Revision: D4324923

Pulled By: rnystrom

fbshipit-source-id: 2770ea9a5b9de639a0b7c376ad5c91ad81e6b71a
2016-12-13 18:29:03 -08:00
Ryan Nystrom
169c0d6c54 Prevent item reload, delete, insert collisions
Summary:
Adds a new test and fixes an item animation collision that `UICollectionView` throws on. Basically we cannot collide reloads with insert+delete.

The example in the test is trivial, but real-world situations do appear b/c of the coalescence of `IGListAdapterUpdater`. It can queue reloads and deletes/inserts at the same index paths while waiting.

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

Differential Revision: D4322005

Pulled By: rnystrom

fbshipit-source-id: 2247163c13c0873a74ac485efff2d882ca6568f9
2016-12-13 13:44:02 -08:00
Ryan Nystrom
695440ec1f Add more missing unit tests
Summary:
Working on that coverage %. Hustle to ?

Seriously tho, nearly maxed the coverage that is realistic. I think we need to spend some time on the grid layout tho, there are parts untested that also are unnecessary. I should file a 3.0.0 issue to track work on that.

Waiting for CI ?
Closes https://github.com/Instagram/IGListKit/pull/324

Differential Revision: D4319806

Pulled By: rnystrom

fbshipit-source-id: b626abd65ad73709c231671c0c669414eef1660b
2016-12-13 07:29:10 -08:00
Sven Bacia
fb9d8cea8e disables prefetchEnabled by default
Summary:
Disables `prefetchEnabled` by default on `IGListCollectionView` (#318).

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

Differential Revision: D4319761

Pulled By: rnystrom

fbshipit-source-id: a3ea4c3d1d1f3123a60c8168fb333e73ab93cb1e
2016-12-13 07:13:58 -08:00
Ryan Nystrom
626d26839b Update changelog for next release
Summary:
Resetting the changelog for next hotfix release.
Closes https://github.com/Instagram/IGListKit/pull/320

Differential Revision: D4316482

Pulled By: jessesquires

fbshipit-source-id: 924bc4770e2eecb615477696243a261b733e2148
2016-12-12 15:44:01 -08:00
Jesse Squires
478264cbc3 Update README.md
Summary: Closes https://github.com/Instagram/IGListKit/pull/321

Differential Revision: D4315759

Pulled By: rnystrom

fbshipit-source-id: 1be7e5799662874d4b41b738115cdb6cde32ed2a
2016-12-12 14:44:08 -08:00
Jesse Squires
fc56c02cec Update README.md
Summary:
rnystrom - I know you removed this before, but I think we should add it back now that we support > 1 platform. 😄

(and macOS is coming up in #235 )
Closes https://github.com/Instagram/IGListKit/pull/322

Differential Revision: D4314033

Pulled By: rnystrom

fbshipit-source-id: d768d0ce19df0154609ab639f0acb8d95fe2b7da
2016-12-12 11:14:19 -08:00
Jesse Squires
faa4595b56 Update README.md
Summary:
Just a few tweaks, less verbose.

Also -- removed the "manual" installation. I don't think hardly anyone uses this. Plus, I don't think a simple drag + drop would work because of `OCMock`.
Closes https://github.com/Instagram/IGListKit/pull/313

Differential Revision: D4313111

Pulled By: rnystrom

fbshipit-source-id: 4796d94e9f4c853220780074807e902a7390c037
2016-12-12 07:14:10 -08:00
Sherlock
2ca1577f3d Check for broken links in markdown files
Summary:
- Install `markdown-link-check` as a dependency
- Check each markdown file for links, and check them using aforementioned library

Closes #312

A few points of note, I'm not sure if we can use the built-in caching capabilities to cache the library (at the moment it's installed for each build, even though it's only used for 1 -- seems a big waste!). Also a downside of the library is it doesn't really like relative links, we only had one -- so I changed it to be absolute.

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

Differential Revision: D4313106

Pulled By: rnystrom

fbshipit-source-id: a73fef73d7d7b54ddff3d5760756630cedb6a6d6
2016-12-12 07:14:10 -08:00
Jesse Squires
1b187caecd Update CHANGELOG.md
Summary: Closes https://github.com/Instagram/IGListKit/pull/311

Differential Revision: D4307618

Pulled By: jessesquires

fbshipit-source-id: 0698436fdeeec9c6d4a776376572025e6e8e6ee4
2.0.0
2016-12-09 12:43:58 -08:00
Ryan Nystrom
b8d2c3bac0 Update docs with 2.0.0 links and copy, regen docs, pod install tests and examples
Summary: Title

Reviewed By: jessesquires

Differential Revision: D4306896

fbshipit-source-id: 134f3afd92d00bed1dee0b99b4f565a606027bdd
2016-12-09 11:44:36 -08:00
Ryan Nystrom
7f56e0fec0 Update podspec and project version to 2.0.0
Summary:
This needs to land and be part of #307 before that gets merged, right?

Part of #306
Closes https://github.com/Instagram/IGListKit/pull/308

Differential Revision: D4306594

Pulled By: rnystrom

fbshipit-source-id: 59314d669f2d42f7dc7856249cf53b81ca001466
2016-12-09 10:44:02 -08:00
Jeff Bailey
b9ede32f5b Issue #299 Unit tests for IGListCollectionView
Summary:
Add 2 new unit test files for IGListCollectionView.  One is for storyboards and the other for when creating the IGListCollectionView in code.

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

Differential Revision: D4304615

Pulled By: rnystrom

fbshipit-source-id: c6edbcd493fe4ee087ce3d0aee80db484207859d
2016-12-08 20:14:01 -08:00
Jesse Squires
8bfe2fefdd Final re-gen docs for 2.0
Summary:
Using latest jazzy 0.7.3
Closes https://github.com/Instagram/IGListKit/pull/302

Differential Revision: D4299870

Pulled By: rnystrom

fbshipit-source-id: 4c2f343695d91f2bcb9ca99355e101bfe8817a7a
2016-12-08 10:14:23 -08:00
Jesse Squires
ec1a46cdca Fix docs error
Summary:
😳
Closes https://github.com/Instagram/IGListKit/pull/301

Differential Revision: D4299155

Pulled By: rnystrom

fbshipit-source-id: 2bac6824a4d76401cb9eb61a582a734464f9d694
2016-12-08 07:14:04 -08:00
Jeff Bailey
80916636ec Fix for issue #294 - Support for UIAppearance in IGListCollectionView…
Summary:
Updated IGListCollectionView:initWithFrame:collectionViewLayout constructor to support UIAppearance for the backgroundColor property.

Fixes #294

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

Differential Revision: D4292394

Pulled By: rnystrom

fbshipit-source-id: a7c4f0e516728b684993f2651eadcc25001de783
2016-12-07 10:14:01 -08:00
Jesse Squires
4c4fdec562 travis voodoo
Summary:
 magic 

We forgot the lamb's blood last time.

- run UI tests on ~~iOS 9, not iOS 10~~ iOS 10.1
- only pod lint once
- only build examples for major releases, not point releases. (new APIs are rarely introduced in point releases)
Closes https://github.com/Instagram/IGListKit/pull/296

Differential Revision: D4291789

Pulled By: rnystrom

fbshipit-source-id: fcfd84be4e914fbc9d0a723315ae6d3ff7582e70
2016-12-07 06:29:05 -08:00
Ryan Nystrom
e66bd85e32 Fix deselection from stack collection context offset
Summary:
Offset should be relative.

Fixes #279

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

Differential Revision: D4290143

Pulled By: rnystrom

fbshipit-source-id: 8d6dccb821b12700d0d7e8704006ef5371396dfd
2016-12-06 18:59:00 -08:00