Commit graph

17 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Bas Broek
58e5888dea Jessie > Jesse
Summary:
Corrected Jesse's name.

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

Reviewed By: ocrickard

Differential Revision: D4009130

Pulled By: jessesquires

fbshipit-source-id: 5786282f0690829374096bed1528138dccf0a703
2016-10-12 11:14:16 -07:00
Patrick Balestra
bd72c71cd6 Fix Twitter handles in Example project
Summary:
I was exploring the example project when I noticed that two Twitter handles were wrong.
This will probably be the most useless PR ever in `IGListKit`, but it's good that you guys get the correct acknowledgment for your hard work! 🤓

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

Reviewed By: ryanolsonk

Differential Revision: D4008615

Pulled By: rnystrom

fbshipit-source-id: 904892d40fed73045e724cc87dddf641af02e27d
2016-10-12 09:14:10 -07:00
FBShipIt
cdc796746a Initial commit
fbshipit-source-id: c38b897b9e2b87c782e0e01b0145d9189dc7f9d8
2016-10-11 10:12:17 -04:00