New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a flow layout for IGList #140
Conversation
@zhubofei updated the pull request - view changes |
@zhubofei updated the pull request - view changes |
@zhubofei updated the pull request - view changes |
1 similar comment
Correct order and height
@zhubofei updated the pull request - view changes |
1 similar comment
@zhubofei -- just a quick note, we'll definitely need some tests here. 😄 @rnystrom -- can we adjust settings on @coveralls ? that shit is noisy AF 🗣 🙉 |
I'm going to do a little bit of a deeper review on this to make sure I understand what all is going on, but looking at the screenshot in #3 it looks pretty cool! Some things I want to make sure we support:
That way you can make a grid layout w/ spacing between all the items (thinking of Instagram's photo grid here). |
Use reference index
@zhubofei updated the pull request - view changes |
@rnystrom I updated the initial comment to include a list of tasks. I'm not quite sure if I should create a separate repo for this. |
@zhubofei updated the pull request - view changes |
@rnystrom Also, since this layout only allows one item per section, do we really need section inset? |
@zhubofei updated the pull request - view changes |
@zhubofei updated the pull request - view changes |
@zhubofei updated the pull request - view changes |
@rnystrom IMHO, at least for fixed-size cell we can get a pretty good performance w/out cache. Actually, for large datasource, it is better to compute attributes on the go. Because |
@zhubofei oops looks like this branch got out of sync, once we're rebased we can land! |
@zhubofei updated the pull request - view changes |
@rnystrom Can I create a new PR instead? There are too many conflicts here. It's really hard for me to rebase 😂. |
@zhubofei haha sure thing! We can close this and open a new one |
Summary: Rebase from #140: Create a flow layout for IGList that does not newline sections. Closes #3 - [x] Minimum inter-item spacing - [x] Minimum line spacing - [x] Constant item size with constant layout time - [x] Update layout on insert/delete/move - [x] Unit Test Closes #225 Differential Revision: D4211469 Pulled By: rnystrom fbshipit-source-id: f4710dbf195701098ac50f94b6b2aa8c801b2a83
@zhubofei So setting insets using 'IGListGridCollectionViewLayout' is currently not possible?? I'm able to create a grid but i would like some spacing on the left and right. |
@otymartin You can set Minimum inter-item spacing and Minimum line spacing instead. |
@zhubofei Secondly (Under header 2) is where I'm using the Let me know if perhaps im doing something wrong!😓 |
@otymartin I think we better open an issue for this. For issue 1 can you post some code sample so that I can look into it? As for issue 2, you can refer to #263. This grid layout uses left alignment by default and we have not yet implemented center alignment like UICollectionViewFlowLayout yet. |
@zhubofei you want me to open an issue for issue 1? |
let's definitely move this into it's own issue thread. let's start with #140 (comment) |
Create a flow layout for IGList that does not newline sections #3