A data-driven UICollectionView framework for building fast and flexible lists.
Find a file
Marvin Nazari 5bede7b78e Select an item through IGListCollectionContext
Summary:
We already had a API to deselect an item through `IGListCollectionContext` this is the support for selecting an item.

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

Reviewed By: ryanolsonk

Differential Revision: D5562902

Pulled By: rnystrom

fbshipit-source-id: 756a154607d7d758faddc70ac784e544739f5a93
2017-08-04 15:19:56 -07:00
.github Update ISSUE_TEMPLATE.md 2017-04-26 13:17:23 -07:00
docs Regenerate docs, move docs build script 2017-05-31 21:01:49 -07:00
Examples Add cell deselection API 2017-07-17 14:19:41 -07:00
Guides Make explicit IGListDiffable protocol requirement 2017-08-03 06:12:51 -07:00
IGListKit.xcodeproj Require newline across all targets 2017-06-20 16:01:39 -07:00
IGListKit.xcworkspace Initial commit 2016-10-11 10:12:17 -04:00
Pods Fixup project, update README and guides 2017-05-12 09:47:20 -07:00
Resources 3.0 migration guide 2017-05-11 13:50:49 -07:00
scripts Updated script to pin SwiftLint version 2017-07-12 12:22:40 -07:00
Source Select an item through IGListCollectionContext 2017-08-04 15:19:56 -07:00
Tests Select an item through IGListCollectionContext 2017-08-04 15:19:56 -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 Add Gemfile and setup travis to cache the dependencies 2017-08-04 15:08:15 -07:00
CHANGELOG.md Select an item through IGListCollectionContext 2017-08-04 15:19:56 -07:00
Dangerfile Update Dangerfile to be less noisy, close #792 2017-05-25 13:46:06 -07:00
Gemfile Add Gemfile and setup travis to cache the dependencies 2017-08-04 15:08:15 -07:00
Gemfile.lock Add Gemfile and setup travis to cache the dependencies 2017-08-04 15:08:15 -07:00
IGListKit.podspec Bump pod and project version to 3.0.0 2017-05-10 12:32:05 -07: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 Fixup project, update README and guides 2017-05-12 09:47:20 -07:00
Podfile.lock Fixup project, update README and guides 2017-05-12 09:47:20 -07:00
README.md Regenerate docs, move docs build script 2017-05-31 21:01:49 -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 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', '~> 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

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 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.