A data-driven UICollectionView framework for building fast and flexible lists.
Find a file
Adam Stern b4c8ea180f give section controllers access to collection view scrolling traits
Summary:
I'd like to be able to access the current collection view scrolling traits inside section controllers. These are expressed as three properties from `UIScrollView`:

`isTracking`, `isDragging`, and `isDecelerating`.

My approach is to add a new struct `IGListCollectionScrollingTraits` with these three values, and expose this to section controllers through `IGListCollectionContext`.

Reviewed By: rnystrom

Differential Revision: D7986814

fbshipit-source-id: 19e9bd3b89545b10238dd060a5af8c5a0f39eb82
2018-05-14 14:56:54 -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 give section controllers access to collection view scrolling traits 2018-05-14 14:56:54 -07:00
Guides Add IGListDiffable remodel plugin source + documentation (a new guide) 2018-02-09 10:18:18 -08: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 Update remodel plugin to latest openSource changes 2018-02-26 23:09:03 -08: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 give section controllers access to collection view scrolling traits 2018-05-14 14:56:54 -07:00
Tests give section controllers access to collection view scrolling traits 2018-05-14 14:56:54 -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 give section controllers access to collection view scrolling traits 2018-05-14 14:56:54 -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.