Giter Club home page Giter Club logo

collectionviewshelflayout's People

Contributors

arturjaworski avatar damienrambout avatar pitiphong-p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collectionviewshelflayout's Issues

ScrollView stop scrolling on tap

Scroll view stops scrolling on tap. And it doesn't return back.
Video

Then I push to an other view controller, the app crashes
image

I'm able to push only when the scroll view stops correctly.

Please help me on this.

reload collection

hi,

when use collectionView.reloadData() all items IndexPath changed from (0 to 1) or (1 to 0) ?!

cells not appearing

In an app I am building I am dynamically creating sections based on data I get back from my database. If I scroll all the way to the end, and then a section is dynamically created above it with different # of items that new section retains the scroll position of the section thats scrolled all the way to the end.

Is there a way to fix this so that all sections scroll to the first item when the section is created?

Headers not updating when on `insertSections`

Hi! Great work!
I am using the layout and custom ShelfElementKindSectionHeaders. However, if I try to later insert a section using insertSections, while the content of the section animates in, the headers stay the same resulting in inconsistent view.
E.g., If I start with this:

A
a a a a a a
B
b b b b b 

and insert section C with c c c c c at the beginning, it ends up looking like this:

A
c c c c c
B
a a a a a a
B
b b b b b

If I scroll away and come back, it shows correct data, so it really looks just like an error with the animation/insertion itself. How it should look right after the animation:

C
c c c c c
A
a a a a a a
B
b b b b b

BTW calling reloadData works as expected.

Any idea what might be wrong? Thanks

Great job!

I have a similar problem in my current project and I have been researching how to best achieve this type of layout without using the typical "UICollection/UITableView inside a UITableView/UICollectionVIewCell. I will much rather prefer a solution like you have engineered rather than the hack mentioned above ๐ŸŒŸ ๐ŸŽ‰ Will do some testing and probably be inspired by this solution. So thanks. That is all :)

Hiding Some Section Headers

Hello and thanks for the hard work, much appreciated!

I've been trying to figure out if you can hide certain section headers using CollectionViewShelfLayout, but I don't think you can. Can you?

If not, I would be interested in helping implement it. Any thoughts on how to do it?

Bad instruction

return sectionHeaderViewsLayoutAttributes[indexPath.section]

Gives a bad instruction unless I cast indexPath into NSIndexPath

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.