Giter Club home page Giter Club logo

Comments (11)

roberthein avatar roberthein commented on May 18, 2024 4

🤔 I will look into this.

from bouncylayout.

conanm avatar conanm commented on May 18, 2024 2

@roberthein have you had a chance to look into this?

from bouncylayout.

roberthein avatar roberthein commented on May 18, 2024 1

Yes it is @David-Pyxis-Designs
I'll have a look at this issue asap! ✌️

from bouncylayout.

oferRounds avatar oferRounds commented on May 18, 2024

+1

from bouncylayout.

ll9750 avatar ll9750 commented on May 18, 2024

+1

from bouncylayout.

oferRounds avatar oferRounds commented on May 18, 2024

Hi all, has anyone found a solution to this?

from bouncylayout.

magicmikek avatar magicmikek commented on May 18, 2024

I'm running into the same Problem. Has anyone found a solution yet?

from bouncylayout.

LeiHao0 avatar LeiHao0 commented on May 18, 2024

Thanks for the repo.

I also found this issue.

After gives the header a size, layout.headerReferenceSize = CGSize(width: UIScreen.main.bounds.width, height: 90), the header shows.

but the header's content like labels will disappear after scroll to bottom with a bouncy.
the protocol viewForSupplementaryElementOfKind did not callback

Lately I set the layout.sectionHeadersPinToVisibleBounds = true makes it keep showing, no idea is it has some side effects.

from bouncylayout.

David-Pyxis-Designs avatar David-Pyxis-Designs commented on May 18, 2024

+1
I also see this issue and in my app the first item after the header renders invisible when I use this layout. It is fine when I do not.

Is this library being supported anymore? I sure would like to use it :-)

from bouncylayout.

david-koneksa avatar david-koneksa commented on May 18, 2024

Thanks @roberthein

from bouncylayout.

David-Pyxis-Designs avatar David-Pyxis-Designs commented on May 18, 2024

This solves the issue by not applying animations when a header in in the visible rect:

open override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { let items = animator.items(in: rect) as? [UICollectionViewLayoutAttributes] if (items?.filter({$0.representedElementKind == UICollectionElementKindSectionHeader}).count)! > 0 { return super.layoutAttributesForElements(in: rect) } return items }

Not ideal but visually it is not all that bad
Would love the REAL solution though

EDIT: After more testing the issue is still happening sometimes .. .depending on scroll speed it seems

from bouncylayout.

Related Issues (20)

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.