Giter VIP home page Giter VIP logo

Comments (7)

Mazyod avatar Mazyod commented on May 14, 2024

@paulovap Hi! Thanks for reporting the issue.
I will look into this, but just to make sure I understand; you are referring to floating headers, right? Something like this: https://github.com/jamztang/CSStickyHeaderFlowLayout?

from tlyshynavbar.

paulovap avatar paulovap commented on May 14, 2024

Yes, i made my own FlowLayout, but its similar to https://github.com/jamztang/CSStickyHeaderFlowLayout where the headers are sticky. With tableview the navigation bar hides normally and the tableview is kept below status bar as expected. But with collectioview it becomes hidden behind the status bar. Don't know if it is actually a bug, but i'm hoping for some guidance. Thank you in advance.

from tlyshynavbar.

Mazyod avatar Mazyod commented on May 14, 2024

I see...

Currently, the component only changes the contentInsets of the scrollView subclass you attach to it (UICollectionView in your case), and it does so as soon as the view appears. So, if the headers are appearing behind the status bar, I would suggest you use the AACStatusBarHeight function inside the component to offset your headers in the layout code, so it doesn't overlap the status bar.

I can't think of anything else, because it seems the issue might be in the layout code.

from tlyshynavbar.

Mazyod avatar Mazyod commented on May 14, 2024

@paulovap Can you please try settings extendedLayoutIncludesOpaqueBars to YES? That should resolve the problem. Credits goes to Tim Arnold.

from tlyshynavbar.

paulovap avatar paulovap commented on May 14, 2024

Did not worked for me. I will try to use this layout project that you recommended and see if this works.

from tlyshynavbar.

paulovap avatar paulovap commented on May 14, 2024

@Mazyod i managed to fix it on the FlowLayout! Thank you!

from tlyshynavbar.

Mazyod avatar Mazyod commented on May 14, 2024

I am glad to hear that!

from tlyshynavbar.

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.