UICollectionView framework for building fast and flexible lists.
|🏠||Better architecture with reusable cells and components|
|🔠||Create collections with multiple data types|
|🔑||Decoupled diffing algorithm|
|✅||Fully unit tested|
|🔍||Customize your diffing behavior for your models|
|🐦||Written in Objective-C with full Swift interop support|
IGListKit is built and maintained with ❤️ by Instagram engineering.
We use the open source version
master branch in the Instagram app.
The preferred installation method is with CocoaPods. Add the following to your
pod 'IGListKit', '~> 4.0.0'
For Carthage, add the following to your
github "Instagram/IGListKit" ~> 4.0.0
For advanced usage, see our Installation Guide.
$ git clone https://github.com/Instagram/IGListKit.git $ cd IGListKit/ $ ./scripts/setup.sh
To regenerate docs, run
./scripts/build_docs.sh from the root directory in the repo.
For the long-term goals and "vision" of
IGListKit, please read our Vision doc.
Please see the CONTRIBUTING file for how to help. At Instagram, we sync the open source version of
IGListKit daily, so we're always testing the latest changes. But that requires all changes be thoroughly tested and follow our style guide.
We have a set of starter tasks that are great for beginners to jump in on and start contributing.
IGListKit is MIT-licensed.
The files in the
/Examples/ directory are licensed under a separate license as specified in each file. Documentation is licensed CC-BY-4.0.
|Last commit: 3 days ago|
4.0.0 is here! 🎉🎊🥳
This version has a number of improvements we've been working on for the last year. We're excited for everyone get their hands on the new improvements and features. Thanks so much to all who contributed code, submitted issues, and contributed to discussions around this release!
[IGListAdapterUpdatingDelegate listAdapterUpdater:willPerformBatchUpdatesWithCollectionView:] to
[IGListAdapterUpdatingDelegate listAdapterUpdater:willPerformBatchUpdatesWithCollectionView:fromObjects:toObjects:listIndexSetResult:] to include more supporting info on updated objects. Jeremy Cohen (b200dda)
[ IGListAdapterUpdatingDelegatelistAdapterUpdater:collectionView:willCrashWithException:fromObjects:toObjects:diffResult:updates:] to include diff result info. Zhisheng Huang (039e77e)
preferItemReloadsForSectionReloads in IGListAdapterUpdater so that the item updates are invoked with the proper collectionView animation, instead of using the delete+insert section operation when the number of items is unchanged. Zhisheng Huang (f699ea0)
IGListAdapterPerformanceDelegate for IGListAdapter to be able to measure how long some operations take across all section controllers. For example, how long it takes to dequeue a cell. Maxime Ollivier (4662454)
Fixed bug with
-[IGListAdapter scrollToObject:supplementaryKinds:scrollDirection:scrollPosition:animated:] where the content inset(bottom/right) of the collection view was incorrectly being applied to the final offset and was inconsistent with the content inset(top/left) of the collection view being applied. Qinghua Hong (#1284)
Fixed crash when the data source is nil before calling
-[IGListAdapterUpdater performUpdateWithCollectionViewBlock:fromObjects:toObjectsBlock:animated:objectTransitionBlock:completion:]. Zhisheng Huang (6cdd112)
[IGListAdapterUpdater performBatchUpdatesWithCollectionViewBlock:] and
[IGListAdapterUpdater performReloadDataWithCollectionViewBlock:] clean state and run completion blocks if their
UICollectionView is nil. Brandon Darin (290d592)
Fixed crash when calling
[UICollectionView layoutAttributesForSupplementaryElementOfKind...] with
IGListCollectionViewLayout and the section controller doesn't actually return a supplementary view Maxime Ollivier (cddb297)