A data-driven UICollectionView framework for building fast and flexible lists.
Find a file
Jesse Squires 8dd464e712 Update swiftlint + script, add newrules, autocorrect
Summary:
- Updates to SwiftLint 0.24.2
- Improve `scripts/lint.sh`
    - pull version out to a var for easier maintenance
    - better error message
    - make script fail xcode build if not installed (so we don't commit lint errors)
- Adds a few new SwiftLint rules
- Correct all new lint errors (most can be done by running `swiftlint autocorrect`)
- Cleans up `.swiftlint.yml`
- Fix up example projects
Closes https://github.com/Instagram/IGListKit/pull/1058

Differential Revision: D6776177

Pulled By: rnystrom

fbshipit-source-id: 345172237b97aaed0d62312c8f366f46145f8cd9
2018-01-22 12:14:38 -08:00
.github Update ISSUE_TEMPLATE.md 2017-04-26 13:17:23 -07:00
docs Fix binding SC deselection crash and publish 3.1.1 2017-08-31 12:51:10 -07:00
Examples Update swiftlint + script, add newrules, autocorrect 2018-01-22 12:14:38 -08:00
Guides Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
IGListKit.xcodeproj IGListSingleSectionControllerDelegate: add deselect delegate method 2017-12-18 12:45:09 -08:00
IGListKit.xcworkspace add Xcode9 fileheader 2017-08-11 09:07:52 -07:00
Pods Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
Resources Create binding and modeling guide/tutorial 2017-08-21 14:46:53 -07:00
scripts Update swiftlint + script, add newrules, autocorrect 2018-01-22 12:14:38 -08:00
Source fix IGListKit updates logging 2018-01-18 13:17:31 -08:00
Tests Test fixing double insert crash 2017-12-20 06:31:42 -08: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 Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
CHANGELOG.md Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
Dangerfile Make SwiftLint comment inline 2018-01-03 12:47:33 -08:00
Gemfile Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
Gemfile.lock Update Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -08:00
IGListKit.podspec Fix binding SC deselection crash and publish 3.1.1 2017-08-31 12:51:10 -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 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 Travis to Xcode 9.2 #trivial 2018-01-21 18:51:27 -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 9.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

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