Commit graph

72 commits

Author SHA1 Message Date
Shukhrat Tursunov
3e80402296 Fixed issue with Podfile in Example project
Summary:
Fixed issue with Podfile in Example project #152
Closes https://github.com/Instagram/IGListKit/pull/155

Differential Revision: D4124632

Pulled By: rnystrom

fbshipit-source-id: 9f825c500e776fe3a4cb8aad2ef6106bc3d76729
2016-11-03 08:44:12 -07:00
Valeriy Van
d34a8aa9a5 Implements isEqual func with guard statement
Summary:
Implements isEqual func with guard statement

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/151

Differential Revision: D4120016

Pulled By: rnystrom

fbshipit-source-id: a769071f788b1acc1f2fade5606859a5d91f1bfd
2016-11-02 14:14:01 -07:00
Valeriy Van
5d55f675ca Removes exsessive casting in unit test.
Summary:
Removes exsessive casting in unit test.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/150

Differential Revision: D4115391

Pulled By: rnystrom

fbshipit-source-id: 10048491f074ad69d5095ea8d9271f47d3677202
2016-11-01 17:59:05 -07:00
Bofei Zhu
158d04ebe0 Support supplementaryViews created from storyboard
Summary:
Miss this in the previous PR #92. Will add unit test soon.
Closes https://github.com/Instagram/IGListKit/pull/123

Differential Revision: D4101594

Pulled By: rnystrom

fbshipit-source-id: 820030358532b0878f6d9e9092834266c9260a38
2016-11-01 10:59:21 -07:00
Bofei Zhu
9685f2ba06 Provide object in IGListSingleSectionController size block
Summary:
Fix #144
Closes https://github.com/Instagram/IGListKit/pull/147

Differential Revision: D4111495

Pulled By: rnystrom

fbshipit-source-id: 34d66e60a7e389da684239b6a6aa992cbcd3d9cd
2016-11-01 10:59:21 -07:00
Valeriy Van
c9ca112eef Applies trailing block syntax.
Summary:
Applies trailing block syntax.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/148

Differential Revision: D4111506

Pulled By: rnystrom

fbshipit-source-id: b99f987f25579634a515786533d9ef2f2e4cd6bd
2016-11-01 10:59:21 -07:00
Sherlock
aba6e49132 Added example schemes for Today/iMessage extensions
Summary:
Offering this open to a bit of a discussion based on the comments at #77.
- Created two new schemes (IGListKitTodayExample, IGListKitMessageExample) in which respectively correspond to their app extension.
- Updated the Podfile to ensure they have IGListKit as a dependency
- Added a super simple example reusing the `LabelSectionController` from the main app

Done more as a 'yes it can be done' as opposed to 'look at what can be done' hence the basic functionality but I can see ways to improve if necessary!
- [x] All tests pass. Demo project builds and runs.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/112

Differential Revision: D4066698

Pulled By: rnystrom

fbshipit-source-id: 64c5cc6f34cc9107f4f6e52ebc57596101eb695c
2016-11-01 07:59:05 -07:00
Ryan Nystrom
9e8ad9626a Remove iOS 7 UICollectionView delegate API support
Summary: Don't need support for iOS 7 anymore, save some cycles on layout.

Reviewed By: ocrickard

Differential Revision: D4098229

fbshipit-source-id: eeaaf875acda1229f9622f11acc7c77ccad75cf0
2016-10-29 14:59:09 -07:00
Jesse Squires
e4a47193c1 Add tvOS support. Close #118
Summary:
Closes #118.

- Add tvOS framework + test targets
- Add shared scheme `IGListKit-tvOS`
- Update `Podfile` and `.podspec`
- Update `.travis.yml`
- Update `CHANGELOG`
- Update `README`
- Run `pod install` and check-in updates

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

Differential Revision: D4101583

Pulled By: rnystrom

fbshipit-source-id: f2736f16ad9f61ad5348c5e93571f3b752deec98
2016-10-29 14:44:11 -07:00
Jesse Squires
e207ae52bf Move contributing.md to .github. Close #114
Summary:
Move contributing.md to .github. Close #114
Closes https://github.com/Instagram/IGListKit/pull/136

Differential Revision: D4101580

Pulled By: rnystrom

fbshipit-source-id: b54cc9b0fe97b58bfd3914e7cc36859cadcbc0b7
2016-10-29 14:44:11 -07:00
Jake Lin
eca0205c26 Call copy method to avoid a potential issue for an NSString property
Summary:
According to rnystrom 's comment on #125 , we leave only two small changes in this PR.
1. Call copy method to avoid a potential issue for an `NSString` property.
2. fix a typo.

close #125

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

Differential Revision: D4095492

Pulled By: rnystrom

fbshipit-source-id: b162842a38850c826685efd0746022daabe9d2b8
2016-10-28 07:59:06 -07:00
Vinh Nguyen
a3d5c14a87 Add missing docs in IGListAdapterUpdaterDelegate
Summary:
- Add missing docs in `IGListAdapterUpdaterDelegate`, fix #128.

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

Differential Revision: D4095494

Pulled By: rnystrom

fbshipit-source-id: 49acb065b61e3837a9624a4d7e9b50fcd08351e8
2016-10-28 07:44:16 -07:00
Ayush Saraswat
ebd8801f90 Rename *ItemController unit tests to *SectionController
Summary:
Rename *ItemController unit tests to *SectionController, addressing issue #126

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

Differential Revision: D4095496

Pulled By: rnystrom

fbshipit-source-id: 277be38ed2789f14199cee9d711a838552921f10
2016-10-28 07:44:16 -07:00
Roman Klauke
348b11da4f reword some assertions with more informations
Summary:
This commit changes some assertion texts. No behavior is changed; no assertions are added (just reworded).  Some of them were short or contained no real meaningful informations, where the error probably is.

Ref: #113

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

Differential Revision: D4090470

Pulled By: rnystrom

fbshipit-source-id: 96f492a1efd258ec3424ce334802229fdbdee191
2016-10-27 14:29:12 -07:00
Ryan Nystrom
b99776e5b5 Center and trim badges, add love to readme
Summary:
- Trimmed badges that I think are a little unnecessary
- Added a heart to the "made by"

cc jessesquires thoughts?

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

Differential Revision: D4089119

Pulled By: rnystrom

fbshipit-source-id: ee9602fc5b7cb9bb004a624ffde89a5dc3c3e743
2016-10-27 10:14:04 -07:00
Jake Lin
d1003df845 Update the Swift code syntax for reflecting the current APIs for Swift.
Summary:
In this PR, we updated the Swift code syntax for reflecting the current APIs for Swift.

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

Differential Revision: D4089084

Pulled By: rnystrom

fbshipit-source-id: 9c90c2f6d5c52d202086a05efc3fe3b07da41ce3
2016-10-27 09:59:07 -07:00
Valeriy Van
e3ea1903f7 Minor changes in WorkingRangeSectionController.swift
Summary:
Uses trailing block syntax calling URLSession.shared.dataTask,
uses guard statement inside that block.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)

…uard statement inside that block.
Closes https://github.com/Instagram/IGListKit/pull/124

Differential Revision: D4088983

Pulled By: rnystrom

fbshipit-source-id: 8c88b486728d2b40e1ed3b1f4819cfc7c584cbc9
2016-10-27 09:44:10 -07:00
Ryan Nystrom
94b92013ce Fix bad merge
Summary: Not sure why the build badge is green. Also need to get this to block landing internally.

Reviewed By: jessesquires

Differential Revision: D4084875

fbshipit-source-id: 67603f7db379f7311dc9c99d77c2e7ce08aff9b1
2016-10-26 16:44:03 -07:00
Ryan Nystrom
cf7cfb89df Add diffing example
Summary: Adding an example of how to use diffing by itself w/ `UITableView` batch updates.

Reviewed By: jessesquires

Differential Revision: D4077768

fbshipit-source-id: 313193cdcadd337e08f74e90713fa127a5365112
2016-10-26 11:59:13 -07:00
Ryan Nystrom
b5aa5e3900 Replace diff result API for batch updates
Summary:
Replacing the move+update API with a batch-updates-safe API on the diff results object. This makes using the diff results w/out the rest of IGListKit infra much easier when working with `UITableView` or `UICollectionView`.

- Added unit tests
- Removed outdated unit tests

Reviewed By: dshahidehpour

Differential Revision: D4065798

fbshipit-source-id: 30da8a7b483d56d5acc497da9320dc07a6d0b7ad
2016-10-26 11:59:13 -07:00
Ryan Nystrom
920aad6a69 Icon in sample app
Summary: Following up w/ a logo and renaming the bundle for the sample app.

Reviewed By: jessesquires

Differential Revision: D4077812

fbshipit-source-id: 186b7831f457b4cd990c0a1fff9eb5c554f8f3e5
2016-10-26 07:44:06 -07:00
Bofei Zhu
8855b5156a Add storyboard support #39
Summary:
This PR is for #39

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

Differential Revision: D4066721

Pulled By: rnystrom

fbshipit-source-id: 4fca278ae9a54aa46626932d47d4a4c001b437d6
2016-10-25 15:29:13 -07:00
Jesse Squires
9d4e85ab80 Update ISSUE_TEMPLATE.md
Summary:
Added IGListKit name, xcode, and CocoaPods/Carthage version
Closes https://github.com/Instagram/IGListKit/pull/119

Differential Revision: D4076643

Pulled By: rnystrom

fbshipit-source-id: 6e31f8a38a92b35bed59e8cc05439b1533b881c7
2016-10-25 13:29:09 -07:00
Jesse Squires
efca62d37d Update README.md
Summary:
A few minor tweaks to clarify things
Closes https://github.com/Instagram/IGListKit/pull/120

Differential Revision: D4074874

Pulled By: rnystrom

fbshipit-source-id: 6f3318044dc3efeb5676d913fe916b26f567ae7c
2016-10-25 09:59:22 -07:00
Jake Lin
56c80c5daf Remove UIColor and UIFont when they are not required.
Summary:
It is a follow-up PR for #111 to remove `UIColor` and `UIFont` when they are not required.

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

Reviewed By: dshahidehpour

Differential Revision: D4068329

Pulled By: jessesquires

fbshipit-source-id: e2fac583ac4075c9fcd66ba0559b834df73d0a8d
2016-10-24 11:15:08 -07:00
Sherlock
8ccdc838db Fixed tail loading example (#105)
Summary:
- Fixes #105
- ~~Added a 'SpinnerSectionController' allowing us to trigger the activity spinner each time~~
- Changed the words array to be numbers instead (I found it personally difficult to realise if more cells were actually added as the text didn't seem to change, by using numbers you can quite clearly see it increment by 5 each time you load more)
- No changes/new tests as it is a fix to an example

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

Differential Revision: D4066700

Pulled By: rnystrom

fbshipit-source-id: 7779a8ba39361cfa2e782db9460e693e90f1a478
2016-10-23 17:44:10 -07:00
Ryan Nystrom
d78c0b4e13 Add Coveralls support and badge
Summary:
Adding Coverall support and badge in README. Waiting on tests. Fixes #37

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

Differential Revision: D4066685

Pulled By: rnystrom

fbshipit-source-id: a9f148fe87e9d25c60afca88c02410898db9b10a
2016-10-23 17:29:11 -07:00
Jake Lin
0ecd0ddd9e Update example code to make it more Swifty
Summary:
In this PR, we updated example code to make it more Swifty by removing `CGRect` for using `.zero` only.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/111

Differential Revision: D4065463

Pulled By: rnystrom

fbshipit-source-id: 089258466e320c58afc9d547f78a481ce9458e49
2016-10-22 20:14:15 -07:00
Ben Asher
e6ff6717be Add analyze step in travis
Summary:
- This runs the static analyzer as part of CI.
- Fixes #52

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

Differential Revision: D4065443

Pulled By: rnystrom

fbshipit-source-id: b9b79831ab3ac756706d002c29e9cd4e3365ab80
2016-10-22 19:59:12 -07:00
Bofei Zhu
a01e9954e3 Add asserts to IGListAdapter
Summary:
Fix #91
Closes https://github.com/Instagram/IGListKit/pull/108

Differential Revision: D4063183

Pulled By: rnystrom

fbshipit-source-id: 8ff4a5ac3bf7418cb968093e9f87b7fc55bc2fe1
2016-10-21 19:59:14 -07:00
Valeriy Van
adbb21fd9d Uses Set instead of Array for uniqueness.
Summary:
Uses Set instead of Array for uniqueness.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/101

Differential Revision: D4057235

Pulled By: rnystrom

fbshipit-source-id: e284d2244d32e83ff0df56473dfa3d8b602ef95b
2016-10-21 00:14:20 -07:00
Ryan Nystrom
761359b7c8 ImageCell copyright header
Summary:
Double fixes #99

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

Differential Revision: D4057233

Pulled By: rnystrom

fbshipit-source-id: 34060366eb69982e99cd9e1e8053f945594b99fa
2016-10-21 00:14:20 -07:00
Valeriy Van
64784974ed Minor fixes in WorkingRangeViewController.swift
Summary:
Using more suitable type cast.
Using guard statement.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/98

Differential Revision: D4056145

Pulled By: rnystrom

fbshipit-source-id: 537fccc781747f835155bfe8ccac45a1e8cdb037
2016-10-20 19:29:19 -07:00
Ryan Nystrom
cad3a55aa6 Working range example copyright
Summary:
Fixes #99

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

Differential Revision: D4056133

Pulled By: rnystrom

fbshipit-source-id: 2df58028c444c1a352946efc4191154eb459676f
2016-10-20 19:29:19 -07:00
Jesse Squires
3cad71134e Update CHANGELOG.md
Summary:
Next release includes breaking changes. Update CHANGELOG to correct version number.
Closes https://github.com/Instagram/IGListKit/pull/96

Differential Revision: D4051335

Pulled By: jessesquires

fbshipit-source-id: 70c0ac861b720c24fa3eb76bb92717b2374b869c
2016-10-20 09:29:28 -07:00
Jesse Squires
459bfd1bc3 fix readme build badge
Summary: Closes https://github.com/Instagram/IGListKit/pull/95

Differential Revision: D4051336

Pulled By: jessesquires

fbshipit-source-id: a9e98aadcad7f02b886169e67a8b6ddfff542474
2016-10-20 09:29:28 -07:00
Ryan Nystrom
7163cf8868 Workaround Jazzy script bug
Summary:
Temporary fix for the doc generation bug. Works now by simply running `$ ./build_docs.sh`.

cc jessesquires that this fix is good for now

Fixes #55

Jazzy bug at realm/jazzy#667
Closes https://github.com/Instagram/IGListKit/pull/93

Differential Revision: D4051337

Pulled By: jessesquires

fbshipit-source-id: 2ad1c45df55ca61ef9a243d0ad33af20b8349f96
2016-10-20 09:29:28 -07:00
Ryan Nystrom
f6e088acd8 Working Range example
Summary:
Adding a working range example to the example app. This example:

- Displays a list of images downloaded from unsplash.it
- Create 20 uniquely-random sized objects
- When section controllers enter the range, create a data task to download the image
  - When finished, store image in `downloadedImage`
  - Set in cell if cell is visible
  - Don't create task if already downloaded or task created
- Cancel task when section controller is destroyed
- Show a spinner cell while downloading the image

Fixes #84

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

Differential Revision: D4050210

Pulled By: rnystrom

fbshipit-source-id: 628a777fa819dccd9d9f4f58646cdf72fb4bc65c
2016-10-19 23:29:12 -07:00
Ryan Nystrom
8e9c08fff7 Fix search sample project scroll delegate
Summary:
The scroll delegate got lost in migrating scroll events to their own delegates and broke the sample app. It looks like there's an actual UIKit bug in iOS 10 though. Fixes #87

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

Differential Revision: D4050213

Pulled By: rnystrom

fbshipit-source-id: 61b29489f28002ad61193df237889b0bb8d34a29
2016-10-19 23:29:12 -07:00
Ryan Nystrom
f7d80e29f3 Update working range docs
Summary:
Docs were out of sync. Working range used to be an attempt to use a range outside the visible bounds, but that's not the case anymore. Instead it is just a number of section controllers beyond the visible range (much simpler). Updated the docs and graphic to reflect this.

Fixes #84

Reviewed By: dshahidehpour

Differential Revision: D4043045

fbshipit-source-id: bc4ae7a5a822626ffda30ff5ac7a3782a3816027
2016-10-19 19:14:24 -07:00
Jesse Squires
4b23cfa91a Attempt to fix travis.yml
Summary:
We're still having travis issues. In other projects, I have issues with iOS 8 timeouts, but nothing else that we've seen here (`pod lint` problems, iOS 9 and 10 timeouts).

Theory: the *simulator* is the problem?

Using `iPhone 6/s` seems to be passing consistently. (like [here](https://travis-ci.org/Instagram/IGListKit/builds/167933436)). So let's try always using this sim.
Closes https://github.com/Instagram/IGListKit/pull/72

Differential Revision: D4044243

Pulled By: jessesquires

fbshipit-source-id: 74921a97a056b713f1872b455609ef6df27a0690
2016-10-19 14:29:13 -07:00
Valeriy Van
0af9178992 Using array initialisation instead of for loop.
Summary:
Using array initialisation instead of for loop.

- [X] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [X] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/81

Differential Revision: D4030872

Pulled By: jessesquires

fbshipit-source-id: f61114d60bacfcb7a3722a6727aa0060a68ae35d
2016-10-18 02:44:22 -07:00
Valeriy Van
90d2805115 Changes 'if let _ = object as?' for 'if object is'
Summary:
Changes 'if let _ = object as?' for 'if object is'

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/83

Differential Revision: D4034281

Pulled By: jessesquires

fbshipit-source-id: f63e853b080ee63595ae5a808f4a2177c4615798
2016-10-18 02:44:21 -07:00
Valeriy Van
96a9555ecb Makes objects function more swifty.
Summary:
Makes objects function more swifty.

- [x ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/74

Reviewed By: dshahidehpour

Differential Revision: D4030906

Pulled By: jessesquires

fbshipit-source-id: 9a986fd4b470da0a33fadfd71f41f86b324df5be
2016-10-17 14:59:07 -07:00
Valeriy Van
799517d6ae Using switch with is cases instead of if with multiple as?.
Summary:
Using switch with is cases instead of if with multiple as?.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/82

Reviewed By: dshahidehpour

Differential Revision: D4030890

Pulled By: jessesquires

fbshipit-source-id: fc17795620509572ed1d9fa6ef405357acab9a9b
2016-10-17 14:44:28 -07:00
Ryan Nystrom
8a96fc9c64 Extension only API flag
Summary:
Adds `APPLICATION_EXTENSION_API_ONLY = YES` to Xcode project.
Closes https://github.com/Instagram/IGListKit/pull/79

Differential Revision: D4028543

Pulled By: rnystrom

fbshipit-source-id: 203afacb5485dd4dc5897991d7981cf80f6da993
2016-10-16 19:44:06 -07:00
Ryan Nystrom
d4f64c3e90 Swap test nib to test bundle
Summary:
IGTestNibCell.xib was in the wrong bundle after imported internally (moved it to `Assets` dir)

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

Reviewed By: ryanolsonk

Differential Revision: D4028444

Pulled By: rnystrom

fbshipit-source-id: cb7ed0f8024ca9fd116827f3935f075c1d9193be
2016-10-16 16:44:02 -07:00
Valeriy Van
1e73bc69b0 Fixes compilation errors in example app.
Summary:
Fixes compilation errors in example app.

- [x] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/71

Differential Revision: D4027054

Pulled By: rnystrom

fbshipit-source-id: 50020d309e8cf69dabaa1958d9f1eed37dc6ee63
2016-10-15 12:29:15 -07:00
Sven Bacia
ce4b851da3 Support cells created from nibs
Summary:
I started working on adding support for dequeuing cells created from nibs (issue #1). Additionally I extended `IGListSingleSectionController` so that it can be used with nibs too. I don't know if you had this also in mind.

- [x]  I'm currently thinking about the best way to test these changes.
- [x] I was not able to update the documentation (issue #55).

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

Reviewed By: dshahidehpour

Differential Revision: D4023746

Pulled By: rnystrom

fbshipit-source-id: 6a8b4cfb4dba38ea6e9870a9a4506288ee155cfe
2016-10-14 18:59:18 -07:00
Valeriy Van
221c2fbd20 Makes objects function more swifty.
Summary:
- [x ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/70

Reviewed By: nlutsenko

Differential Revision: D4025610

Pulled By: rnystrom

fbshipit-source-id: 927e93cec5719466dc152f82a235d5a70e53109d
2016-10-14 17:44:19 -07:00