A data-driven UICollectionView framework for building fast and flexible lists.
Find a file
Ryan Nystrom 623ff2a8a8 Container size doesnt use content inset, add new APIs
Summary:
The content inset of a collection view can change at any time (as it does with our refresh control) and isn't a good measure of the container size. I don't want to totally remove that API though, so I changed the default behavior, added an insets API, and also added the functionality of the original in a new API.

This makes sizes much more deterministic.

Reviewed By: jessesquires

Differential Revision: D4800758

fbshipit-source-id: 85ce843b5b1c297cea2e2ea705fa255617cbe356
2017-03-30 09:35:03 -07:00
.github Updates to the Contributing.md file. 2017-03-29 13:47:18 -07:00
docs Fix spelling in documentation 2017-03-07 08:31:06 -08:00
Examples Container size doesnt use content inset, add new APIs 2017-03-30 09:35:03 -07:00
Guides Update Installation.md 2017-03-16 16:05:16 -07:00
IGListKit.xcodeproj Move section controller mutation API to object provided in update block 2017-03-22 12:46:49 -07:00
IGListKit.xcworkspace Initial commit 2016-10-11 10:12:17 -04:00
Pods Revert D4640425: [IGListKit] kill IGListCollectionView. GH issue #409 2017-03-06 16:15:31 -08:00
Resources Optimized images 2017-02-20 16:18:20 -08:00
Source Container size doesnt use content inset, add new APIs 2017-03-30 09:35:03 -07:00
Tests Container size doesnt use content inset, add new APIs 2017-03-30 09:35:03 -07:00
.gitignore Use bundler to manage CocoaPods and xcpretty 2016-10-13 19:29:09 -07:00
.slather.yml Ignore Xcode dir in coverage reports 2016-11-20 07:58:58 -08:00
.travis.yml Changed xcode version to 8.3 in .travis file 2017-03-29 13:32:55 -07:00
build_docs.sh Fix build docs script 2017-01-28 01:13:54 -08:00
CHANGELOG.md Container size doesnt use content inset, add new APIs 2017-03-30 09:35:03 -07:00
Dangerfile Setup Danger 2017-03-13 09:32:00 -07:00
IGListKit.podspec Release 2.1.0 prep 2017-01-04 10:14:37 -08:00
LICENSE.md Initial commit 2016-10-11 10:12:17 -04:00
PATENTS.md Initial commit 2016-10-11 10:12:17 -04:00
Podfile Add tvOS support. Close #118 2016-10-29 14:44:11 -07:00
Podfile.lock Revert D4640425: [IGListKit] kill IGListCollectionView. GH issue #409 2017-03-06 16:15:31 -08:00
README.md Changed minimum macOS deployment target to 10.10 2016-12-29 11:13:57 -08:00

Build Status Coverage Status Pods Version Platforms Carthage Compatible


A data-driven UICollectionView framework for building fast and flexible lists.

Main Features
🙅 Never call performBatchUpdates(_:, completion:) or reloadData() again
🏠 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
📱 Simply UICollectionView at its core
🚀 Extendable API
🐦 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.

Requirements

  • Xcode 8.0+
  • iOS 8.0+
  • tvOS 9.0+
  • macOS 10.10+ (diffing algorithm components only)
  • Interoperability with Swift 3.0+

Installation

CocoaPods

The preferred installation method is with CocoaPods. Add the following to your Podfile:

pod 'IGListKit', '~> 2.0.0'

Carthage

For Carthage, add the following to your Cartfile:

github "Instagram/IGListKit" ~> 2.0.0

For advanced usage, see our Installation Guide.

Getting Started

Documentation

You can find the docs here. Documentation is generated with jazzy and hosted on GitHub-Pages.

Contributing

Please see the CONTRIBUTING file for how to help out. 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.

License

IGListKit is BSD-licensed. We also provide an additional patent grant.

The files in the /Examples/ directory are licensed under a separate license as specified in each file. Documentation is licensed CC-BY-4.0.