A data-driven UICollectionView framework for building fast and flexible lists.
Find a file
Adam Stern a1ee4c19f7 remove duplicate identifiers from IGListBindingSectionController objects
Summary:
I was building a new `IGListBindingSectionController` subclass and accidentally used two view models with the same ID. Was seeing strange results and realized we're not removing dups or asserting here.

Adding a call to `objectsWithDuplicateIdentifiersRemoved` when the view models are first requested.

Reviewed By: rnystrom

Differential Revision: D8303601

fbshipit-source-id: 42c62adc401feaec2c7dce2a83cfc6533599752b
2018-06-06 15:13:48 -07:00
.github Update ISSUE_TEMPLATE.md 2017-04-26 13:17:23 -07:00
docs Regenerate docs for 3.4 2018-05-01 17:04:28 -07:00
Examples Fix warnings in macOS sample app in Xcode 9.3 2018-05-30 18:18:03 -07:00
Guides Add correct comment syntax for Remodel 2018-05-30 11:58:22 -07:00
IGListKit.xcodeproj give section controllers access to collection view scrolling traits 2018-05-14 14:56:54 -07:00
IGListKit.xcworkspace Minimum fixes for Xcode 9.3 build errors 2018-04-09 08:37:18 -07:00
Pods Bump min macOS version to 10.11 #trivial 2018-02-03 08:31:28 -08:00
remodel-plugin Add missing preprocessors value 2018-05-30 12:36:43 -07:00
Resources Create binding and modeling guide/tutorial 2017-08-21 14:46:53 -07:00
scripts Update .travis.yml and lint.sh, try to fix #1060 and lint errors #trivial 2018-02-02 13:16:46 -08:00
Source remove duplicate identifiers from IGListBindingSectionController objects 2018-06-06 15:13:48 -07:00
Tests remove duplicate identifiers from IGListBindingSectionController objects 2018-06-06 15:13:48 -07:00
.gitignore Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
.slather.yml Ignore Xcode dir in coverage reports 2016-11-20 07:58:58 -08:00
.travis.yml Minimum fixes for Xcode 9.3 build errors 2018-04-09 08:37:18 -07:00
CHANGELOG.md remove duplicate identifiers from IGListBindingSectionController objects 2018-06-06 15:13:48 -07:00
Dangerfile Update .travis.yml and lint.sh, try to fix #1060 and lint errors #trivial 2018-02-02 13:16:46 -08:00
Gemfile Update .travis.yml and lint.sh, try to fix #1060 and lint errors #trivial 2018-02-02 13:16:46 -08:00
Gemfile.lock Update .travis.yml and lint.sh, try to fix #1060 and lint errors #trivial 2018-02-02 13:16:46 -08:00
IGListKit.podspec Update README and podspec with new license, bump version to 3.4 2018-05-01 16:10:19 -07:00
LICENSE.md Relicense to MIT 2018-05-01 14:50:56 -07:00
Podfile Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
Podfile.lock Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
README.md Update README and podspec with new license, bump version to 3.4 2018-05-01 16:10:19 -07: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 9.0+
  • iOS 8.0+
  • tvOS 9.0+
  • macOS 10.11+ (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', '~> 3.0'

Carthage

For Carthage, add the following to your Cartfile:

github "Instagram/IGListKit" ~> 3.0

For advanced usage, see our Installation Guide.

Getting Started

$ git clone https://github.com/Instagram/IGListKit.git
$ cd IGListKit/
$ ./scripts/setup.sh

Documentation

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

To regenerate docs, run ./scripts/build_docs.sh from the root directory in the repo.

Vision

For the long-term goals and "vision" of IGListKit, please read our Vision doc.

Contributing

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.

License

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.