Commit graph

47 commits

Author SHA1 Message Date
Lvv.me
c9e045c942 Improve SwiftPM support (#1546)
Summary:
This diff imports and refines the PR made by cntrump on GitHub.

The PR introduces the following:

* Sample apps now use SPM instead of CocoaPods to import IGListKit.
* Adds Mac Catalyst as an example target.
* Adds C++ flags to the CocoaPods specs.
* Fixes a script issue that was discovered when regenerating the symlinks.

The PR originally aimed to remove the need for symlinked references to the IGListKit and IGListDiffKit source files, but in testing, I couldn't get it working. It's possible SPM being too strict [on where the headers can be placed to be discovered](https://forums.swift.org/t/how-do-i-specify-the-headers-directory-for-a-objc-target-in-swift-package-managers-package-swift/58531/3).

Additionally, another issue was that the original PR changed all of the `#import` statements to the the modular `import` statements, which is fine for the sample apps, but ended up breaking compatibility for any apps that had modules disabled.

## Changes in this pull request

Improve SwiftPM support:

Build module `IGListDiffKit` and `IGListKit` as Objective-C++.

module `IGListDiffKit`:
    - Source/IGListDiffKit
    - module defined in `Source/IGListDiffKit/modulemap/module.modulemap`
    - requires `-fmodules` and `-fcxx-modules`

module `IGListKit`:
    - depend on `IGListDiffKit`, use `import IGListDiffKit;`
    - Source/IGListKit
    - module defined in `Source/IGListKit/modulemap/module.modulemap`
    - requires `-fmodules` and `-fcxx-modules`

module `IGListSwiftKit`:
    - depend on `IGListKit`, use `import IGListKit`
    - Source/IGListSwiftKit

Deleted `spm/` and `scripts/generate_spm_sources_layout.sh`, it is unnecessary.

Updated `.podspec`, add `'OTHER_CFLAGS' => '-fmodules'` and `'OTHER_CPLUSPLUSFLAGS' => '-fcxx-modules'`.

Add missing swift files for `IGListSwiftKit` in `IGListKit.xcodeproj`

### How to use

Replace `#import <IGListDiffKit/IGListDiffKit.h>` with `import IGListDiffKit;`, because `IGListDiffKit.h` isn't exist in `modulemap/`, Or create a symbol link by `ln -sf ../IGListDiffKit.h` for support it ?

### Examples

Use SwiftPM for building examples.

### Checklist

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] 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)

Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1546

Test Plan: Test PR showing running tests: https://github.com/TimOliver/IGListKit/actions/runs/4339956050/jobs/7578047058

Reviewed By: lorixx

Differential Revision: D33592395

Pulled By: TimOliver

fbshipit-source-id: 8f7b1873f2b1c6a80908bb55b123e31bea13bb0c
2023-03-06 23:29:41 -08:00
Tim Oliver
2ed59fcf80 Update 'master' branch references to 'main' branch
Summary:
G'day folks! As promised, I'm spending a bit of my free time seeing what I can do to update and refresh the IGListKit repo on GitHub.

I noticed last night some strange behaviour in that the GitHub Actions CI wasn't running when new commits were merged into the main branch. I discovered the cause of this was because the `CI.yml` file still had `master` in its build rules instead of `main`. And once I noticed that, I noticed there were a lot of other references to the main branch being called `master` in a lot of the documentation.

Thankfully within the documentation, GitHub was smart enough to automatically redirect all of the `master` URLs to `main`, so nothing visibly broke, but I definitely think we should update all of that. :)

I went through the entire repo and did a thorough audit in all of its text files, and updated the main branch name accordingly.

Reviewed By: DimaVartanian

Differential Revision: D42990133

fbshipit-source-id: d6b06c40b1b959990856b46b048895e3c55a9870
2023-02-08 18:34:25 -08:00
Jian Chen
c7c8f38638 Add <IGListDiffable> to isEqualToDiffableObject method argument type
Summary:
This method generated using the remodel generation script does not match with the header file.

 The method declared in .h file is:
    - (BOOL)isEqualToDiffableObject:(nullable id<IGListDiffable>)object;

But implementation generated in .m file is:
    - (BOOL)isEqualToDiffableObject:(nullable id)object
    {
        return [self isEqual:object];
    }

This fix is to generate the implementation as:
    - (BOOL)isEqualToDiffableObject:(nullable id<IGListDiffable>)object
    {
        return [self isEqual:object];
    }

Reviewed By: natestedman

Differential Revision: D27146804

fbshipit-source-id: f7d0d598e97e0ef47948b973ff38d9a319cd4b0d
2021-03-18 02:20:45 -07:00
Zhisheng Huang
f3175ec31f Update the version to be 4.0
Summary:
As title, let's prepare the 4.0 release with the version bump.

1. Change the Source/Info.plist to have 4.0.0 for CFBundleShortVersionString.
2. Manually update any .md files that used the old release versions.
3. Run `./scripts/setup.sh` to re-update all the pods and the Example projects.

Reviewed By: natestedman

Differential Revision: D18616823

fbshipit-source-id: ca0f2a09cdd9ab592c2cb002fe923e195ce3ab12
2019-11-20 16:23:15 -08:00
Afonso
3c4cd1c335 Update RxIGListKit link on Best Practices & FAQ (#1375)
Summary:
## Changes in this pull request
Updated the link to RxIGListKit as the current one points to a dead end. Simple documentation update, no code changes.

Issue fixed: #

### Checklist

- [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)
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1375

Reviewed By: bdotdub

Differential Revision: D18525301

Pulled By: iperry90

fbshipit-source-id: 650c6828b5a9ba256d2aa6b0c1abb27d3de43a8c
2019-11-18 07:30:20 -08:00
Nate Stedman
e4c60650f2 Split IGListKit and IGListDiffKit (#1377)
Summary:
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1377

This splits the diffing-only components from `IGListKit` out into a separate library, `IGListDiffKit`, allowing them to be used independently of the rest of `IGListKit`. We've found that the diffing components of the library are useful independently of the rest of the `UICollectionView` infrastructure, and separating the libraries allows apps to take advantage of those components without paying the full binary size cost of `IGListKit`. The diffing components are available as a subspec in Cocoapods, and as an independent framework in Carthage and direct Xcode project import (i.e. Git submodules).

This is a breaking change, necessitating a major version bump, although it should have only minor impact for projects using the umbrella header `IGListKit.h`, as that header continues to import the diffing utilities. In particular, for a project using Cocoapods and importing `IGListKit.h`, there should be no code changes required.

Reviewed By: calimarkus

Differential Revision: D18114249

fbshipit-source-id: 363b5a427e32800bbc6e82f897230963b4167245
2019-10-31 08:26:12 -07:00
Dan
3e07511861 Minor grammar fix (#1366)
Summary:
## Changes in this pull request

Issue fixed: #

### Checklist

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1366

Differential Revision: D17401484

Pulled By: lorixx

fbshipit-source-id: 2fda3a2b36d88a712f2853774eed5987793db26c
2019-09-16 12:10:34 -07:00
Markus Emrich
210057b8d9 Update and rename Generating your models.md (#1359)
Summary:
…  to Generating your models using remodel.md
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1359

Reviewed By: natestedman

Differential Revision: D16927236

Pulled By: calimarkus

fbshipit-source-id: fcf366f3a29c60f750285ad8e44df506ac850461
2019-08-21 07:04:24 -07:00
Hanton Yang
e2fd2edda7 Fix broken image links in Modeling and Binding.md (#1348)
Summary:
## Changes in this pull request

Fix broken image links in `Modeling and Binding.md`

### Checklist

- [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)
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1348

Reviewed By: joetam

Differential Revision: D16542309

Pulled By: joetam

fbshipit-source-id: 4b761d568b0b4d60d8caefd89c7f130cfb96123e
2019-08-01 16:44:23 -07:00
Richard Topchii
f6714308db Fix typo (#1224)
Summary:
Issue fixed: #

- [x] All tests pass. Demo project builds and runs.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1224

Differential Revision: D9003381

Pulled By: rnystrom

fbshipit-source-id: d0369d82b3f20bb15b94515d34d9667c34790fb2
2018-07-25 14:20:31 -07:00
Jordan Morgan
c04fa2fcaa Add correct comment syntax for Remodel
Summary:
Using "//" causing a parsing issue with Remodel, whereas "#" appears to be the correct syntax. This pull simply updates the code sample using the correct syntax.

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] 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/1169

Differential Revision: D8204551

Pulled By: rnystrom

fbshipit-source-id: 3c77bb943cf2b99e1c48f74f72560c56601c026d
2018-05-30 11:58:22 -07:00
Markus Emrich
e02dd0e7ed Add IGListDiffable remodel plugin source + documentation (a new guide)
Summary:
Adds the source for a remodel plugin to autogenerate models conforming to `IGListDIffable`.

- [x] All tests pass. Demo project builds and runs. (source untouched, purely additive)
- [x] I added remodel plugin tests + and a new guide explaining the installation + usage
- [ ] 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/1083

Reviewed By: rnystrom

Differential Revision: D6937925

Pulled By: calimarkus

fbshipit-source-id: 54228cddf387cf20ceceec1732e439ab6fd4b984
2018-02-09 10:18:18 -08:00
Ryan Nystrom
e3aa05a2ee Update Travis to Xcode 9.2 #trivial
Summary:
Issue fixed: #1009
Closes https://github.com/Instagram/IGListKit/pull/1025

Differential Revision: D6771239

Pulled By: rnystrom

fbshipit-source-id: be722bcded6fd5d04e0988d39a4ff58a7cef749e
2018-01-21 18:51:27 -08:00
jeop10
b166528853 Update Getting Started.md
Summary:
Update Getting Started file to display that 'IGListDiffable' has been renamed to 'ListDiffable' (as seen on Xcode)

Issue fixed: N/A

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] 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/964

Differential Revision: D6161503

Pulled By: rnystrom

fbshipit-source-id: a3602393bb29a31d05fd9590aaa44f03bd5827d7
2017-10-26 10:42:37 -07:00
Ryan Nystrom
1fccfce0f1 Create binding and modeling guide/tutorial
Summary:
Adds a tutorial-style guide on how to approach modeling given a design, how to effectively use `IGListBindingSectionController`, and how to do local mutations/updates.

You can read the [formatted guide here](https://github.com/Instagram/IGListKit/blob/binding-guide/Guides/Modeling%20and%20Binding.md).

Issue fixed: #755, #799, #697
Closes https://github.com/Instagram/IGListKit/pull/903

Differential Revision: D5673178

Pulled By: rnystrom

fbshipit-source-id: 8b0ff6008faff9781c6b290d1ad2395e0225c1c9
2017-08-21 14:46:53 -07:00
Clay Reimann
85afdfa54b Make explicit IGListDiffable protocol requirement
Summary:
While the CocoaDocs for the [IGListDiffable](https://instagram.github.io/IGListKit/Protocols/IGListDiffable.html) state that IGListDiffable objects should not mutate their `diffIdentifier` that requirement is not clear in this guide.

This is a documentation only PR.

Issue fixed: #880

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

Reviewed By: ryanolsonk

Differential Revision: D5547277

Pulled By: rnystrom

fbshipit-source-id: 68d6f18f9c5bbb28d2c7071b67e8f89624258d81
2017-08-03 06:12:51 -07:00
Weyert de Boer
9f5bf3fb7e Improved the documentation
Summary:
Improved the documentation so it that the Getting Started guide calls out that you need to set `dataSource`-property of the `IGListAdapter` as I totally misse that.
Closes https://github.com/Instagram/IGListKit/pull/820

Differential Revision: D5353295

Pulled By: rnystrom

fbshipit-source-id: deca1d75fad08f69081033ae1a65302a4f10ba9f
2017-06-29 18:32:31 -07:00
Weyert de Boer
fc5e92a3ed Fixed the typo in the Core Data guide
Summary:
Issue fixed: #769

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] 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/833

Differential Revision: D5352670

Pulled By: rnystrom

fbshipit-source-id: a879e29b8a1492f01c4bb3378692df7e0cd46dae
2017-06-29 17:09:49 -07:00
Daniel Alamo
49f1d3e653 Remove ", which will be super fast" from FAQ.md
Summary:
Issue fixed: #763

- [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.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/794

Differential Revision: D5129406

Pulled By: rnystrom

fbshipit-source-id: dcca533130e99d5960781c5c3336a6fdbd399505
2017-05-25 08:22:36 -07:00
James Sherlock
fb5dd116a2 Spelling & General Fixes
Summary:
Closes #771, #768, #767, #766, #765
Closes https://github.com/Instagram/IGListKit/pull/789

Differential Revision: D5129348

Pulled By: rnystrom

fbshipit-source-id: 4f3da39e643adade99fa7549098ff39d6350de17
2017-05-25 08:03:37 -07:00
William Hoffmann
c2504e0d0e Fix its in FAQ
Summary:
When you want it to be possessive, it's just i-t-s, but when you want it to be a contraction, it's i-t-'-s.

Issue fixed: #764

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/781

Differential Revision: D5129333

Pulled By: rnystrom

fbshipit-source-id: c12e15c7403f888384119c78ef632044a054c5e6
2017-05-25 07:46:13 -07:00
heshamsalman
f3be4352d8 Corrected "peform", close #775
Summary:
Issue fixed: #775

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/786

Differential Revision: D5129310

Pulled By: rnystrom

fbshipit-source-id: 5ba4f13b0546c2be1231964489e93d1c32e1c89d
2017-05-25 07:33:53 -07:00
Kj Drougge
aacb369c10 fix minor spelling error
Summary:
Minor spelling error

- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/742

Differential Revision: D5069293

Pulled By: jessesquires

fbshipit-source-id: d146c934cbd6eb37400d99ee16bea7e6fa86acee
2017-05-16 07:47:53 -07:00
Jesse Squires
9d102b9639 Fixup project, update README and guides
Summary:
- Fix OCMock issues with tvOS tests
- Update README/guides
Closes https://github.com/Instagram/IGListKit/pull/737

Differential Revision: D5052333

Pulled By: jessesquires

fbshipit-source-id: 958444d892c14dd4c75e244f20ae21bbfeec8290
2017-05-12 09:47:20 -07:00
Ryan Nystrom
de0fe91ae7 3.0 migration guide
Summary:
Will add to this as we close out the [milestone](https://github.com/Instagram/IGListKit/milestone/3).

Issue fixed: #475
Closes https://github.com/Instagram/IGListKit/pull/661

Differential Revision: D5047071

Pulled By: jessesquires

fbshipit-source-id: 78989529f50c9b281960e5acf843e91198677432
2017-05-11 13:50:49 -07:00
James Sherlock
a8190f3db1 Update version number in docs
Summary:
Part of #707
Closes https://github.com/Instagram/IGListKit/pull/734

Differential Revision: D5046692

Pulled By: jessesquires

fbshipit-source-id: db43f99fd0bbf4186a1bd47070f28a9a446bc2a4
2017-05-11 13:07:11 -07:00
Ryan Nystrom
b6217a6709 Proof guides for consisntency and name changes
Summary:
Part of #707
Closes https://github.com/Instagram/IGListKit/pull/730

Differential Revision: D5039060

Pulled By: rnystrom

fbshipit-source-id: d54259b2dddbaba0fe2e69c6dd08a37fd17fbc4a
2017-05-10 13:31:19 -07:00
Avner
034f162d6d Typo in the comparison
Summary:
Issue fixed: #

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/716

Reviewed By: rnystrom

Differential Revision: D5003529

Pulled By: jessesquires

fbshipit-source-id: e7a0bdcff962f94c33f24f27e1fc9c0a3ed8dbfb
2017-05-05 08:55:43 -07:00
Ryan Nystrom
ad416ecccd Remove refs to IGListSectionType, fix TV app example
Summary:
- Clean up docs
  - Remove `IGListSectionType` and `IGListCollectionView`
- Fix TV app example

Issue fixed: #675

- [x] All tests pass. Demo project builds and runs.
Closes https://github.com/Instagram/IGListKit/pull/676

Differential Revision: D4915634

Pulled By: rnystrom

fbshipit-source-id: 60eb1f1e5ece7fe68f6bf44b465bd5379615d716
2017-04-19 16:21:07 -07:00
Jesse Squires
a4b579a089 Create Working with UICollectionView guide
Summary:
Close #527
Closes https://github.com/Instagram/IGListKit/pull/664

Differential Revision: D4906260

Pulled By: jessesquires

fbshipit-source-id: c849dd17d6161ab121d0d3dd55e59e9e0832be73
2017-04-18 08:47:42 -07:00
Bas Broek
2e3d798870 Fix GitHub capitalization
Summary:
Issue fixed: --

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] 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/666

Differential Revision: D4906205

Pulled By: jessesquires

fbshipit-source-id: b24e187dcc16fda2305804add4129da60197e86c
2017-04-18 08:47:42 -07:00
Ryan Nystrom
63ed50c23c Update FAQ with more Questions
Summary:
Been compiling a list of more questions, adding them to the FAQ. Note that this includes some 3.0-only stuff.
Closes https://github.com/Instagram/IGListKit/pull/660

Differential Revision: D4899942

Pulled By: jessesquires

fbshipit-source-id: c19b2f226285ab9e2734a677ccacd98d33755cbc
2017-04-17 12:18:00 -07:00
yuzushioh@gmail.com
74b84da4c3 Added a project link for IGListKit with RxSwift section in the guide
Summary:
I updated IGListKit with RxSwift section in the guide. related to #619
Closes https://github.com/Instagram/IGListKit/pull/648

Differential Revision: D4898650

Pulled By: jessesquires

fbshipit-source-id: 7c3a6913003efe5595155da5c8ca9ba640d1c5cc
2017-04-17 10:44:32 -07:00
Jesse Squires
da4ef11f5b Add vision doc
Summary:
Adding a `VISION.md` doc at the root dir to give collaborators and users guidance about what we will work on and how we will prioritize features/fixes for IGListKit.

Issue fixed: #542

Closes https://github.com/Instagram/IGListKit/pull/607

Differential Revision: D4852285

Pulled By: jessesquires

fbshipit-source-id: 9588c1ade63d291d60a4ff34c50506c38b51b5b0
2017-04-07 15:23:47 -07:00
Jesse Squires
782cc1d2a6 Update Installation.md
Summary:
Updates as follow-up to #559
Closes https://github.com/Instagram/IGListKit/pull/560

Differential Revision: D4725122

Pulled By: jessesquires

fbshipit-source-id: 000fd83ed4de656cb9a53c07013533a6cd7a1e4c
2017-03-16 16:05:16 -07:00
Jesse Squires
a381004630 Update Best Practices and FAQ.md
Summary:
rnystrom Per recent internal discussions 😄
Closes https://github.com/Instagram/IGListKit/pull/536

Reviewed By: rnystrom

Differential Revision: D4697189

Pulled By: jessesquires

fbshipit-source-id: c3e465f6900c6c479057a47bd0ddfcae1ae1544f
2017-03-13 09:32:01 -07:00
Jesse Squires
fb5f15ed5e Core Data guide
Summary:
Issue answered: #407 #460 #461

I did not run any tool to generate documentation

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

Differential Revision: D4621212

Pulled By: jessesquires

fbshipit-source-id: 110e3d37d08e7c763b6a6cde70bc83280f7a2bb3
2017-02-27 11:31:55 -08:00
Jesse Squires
85396f1236 Update IGListDiffable and Equality.md
Summary:
Per #509
Closes https://github.com/Instagram/IGListKit/pull/513

Differential Revision: D4613737

Pulled By: jessesquires

fbshipit-source-id: f77960819a047a0bd504dbf7ebf0558a569801cf
2017-02-24 13:48:12 -08:00
Jesse Squires
59eded3919 Create Best Practices and FAQ.md closes #405
Summary:
Initial best practices / FAQ. Closes  #405.
Closes https://github.com/Instagram/IGListKit/pull/478

Differential Revision: D4568153

Pulled By: jessesquires

fbshipit-source-id: 57090288f66a79e3514c84ecb7199bd3d85890b0
2017-02-15 16:15:20 -08:00
James Sherlock
5cd771b546 Added Subspec for Diffing
Summary:
So the main Podspec file now has two Subspecs, `Diffing` and for lack of better name `Default`. `Diffing` is purely the files within the common directories (used for Diffing, if in the future we support MacOS NSCollectionView then this may need changing). `Default` depends on `Diffing` but also adds all the non-common files.

To use it via CocoaPods, nothing changes. You `import IGListKit` and you will only have access to the files in the pod you use. (So if you use `IGListKit/Diffing` in your Podfile, then you will only get access to the diffing files). If you do a manual installation, or I assume via Carthage, then you will need to import the correct header file (either `IGListDiffKit.h` or `IGListKit.h` depending on what you want).

Turns out CocoaPods creates it's own umbrella header (unless you tell it otherwise) meaning our ones are unused by it.

Just to confirm `IGListKit` in your Podfile will give you everything, only if you add `/Diffing` will you "opt-out" o
Closes https://github.com/Instagram/IGListKit/pull/368

Differential Revision: D4367438

Pulled By: jessesquires

fbshipit-source-id: 272318ca551e7e8c4177ca3ca501fde23bd9705a
2016-12-27 12:44:27 -08:00
Ryan Nystrom
b8d2c3bac0 Update docs with 2.0.0 links and copy, regen docs, pod install tests and examples
Summary: Title

Reviewed By: jessesquires

Differential Revision: D4306896

fbshipit-source-id: 134f3afd92d00bed1dee0b99b4f565a606027bdd
2016-12-09 11:44:36 -08:00
Ryan Nystrom
e1d6f52552 Fix migration code block formatting
Summary:
Closes #280
Closes https://github.com/Instagram/IGListKit/pull/281

Differential Revision: D4274255

Pulled By: rnystrom

fbshipit-source-id: 4bfbf5afc44a5e534372f449e6f3c0e574e7bfc8
2016-12-04 11:29:02 -08:00
Ryan Nystrom
f2a9d93be8 Add details for 1.0 to 2.0 migration
Summary:
Added migration guide for `IGListDiffable` changes.

Closes #221
Closes https://github.com/Instagram/IGListKit/pull/274

Differential Revision: D4265446

Pulled By: rnystrom

fbshipit-source-id: b98a975a9ef65bca0d46a1011e76834ecf08c681
2016-12-02 06:58:59 -08:00
Jesse Squires
45933665cf Update IGListDiffable and Equality.md
Summary:
Some minor tweaks and improvements to this guide. 😄
Closes https://github.com/Instagram/IGListKit/pull/265

Differential Revision: D4235752

Pulled By: jessesquires

fbshipit-source-id: 03adec7750ac8ded23542db97b9506ff7dc00adf
2016-11-27 17:43:58 -08:00
Ryan Nystrom
1c44991e62 Add equality guide
Summary:
Fixes #253
Closes https://github.com/Instagram/IGListKit/pull/257

Differential Revision: D4232269

Pulled By: jessesquires

fbshipit-source-id: 3098010007da7cede7cede4c162f3d1614418f7e
2016-11-24 15:44:04 -08:00
LinkThrow
552053a5da Broken link to full 'LabelSectionController.swift'
Summary:
- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)

Replaced with direct link in repo
Closes https://github.com/Instagram/IGListKit/pull/254

Differential Revision: D4231946

Pulled By: rnystrom

fbshipit-source-id: 75635e12cd8f4f047d8afc0d6dd6008136bd5d26
2016-11-24 10:29:04 -08:00
Jesse Squires
8a6fde9e45 Initial setup for guides
Summary:
- Create `Guides/` top-level dir
- Move `README` "creating first list" contents into `Guides/Getting Started.md`
- Add initial `Guides/Migration.md` (ref #221)
- Fix #245

See rendered guides at:

- https://github.com/Instagram/IGListKit/blob/guides-setup/Guides/Getting%20Started.md
- https://github.com/Instagram/IGListKit/blob/guides-setup/Guides/Migration.md
Closes https://github.com/Instagram/IGListKit/pull/252

Differential Revision: D4228332

Pulled By: jessesquires

fbshipit-source-id: f26c2c1ee3cfefb40be1f99674702f95394d4aaf
2016-11-23 12:44:01 -08:00