GithubHelp home page GithubHelp logo

Comments (10)

chinh-tran avatar chinh-tran commented on May 29, 2024 2


Apparently moving the navbar using the frame property no longer works with iOS 15.1 (https://developer.apple.com/forums/thread/691975).

An alternative is to use CGAffineTransform, which seems to fix the issue:

navigationBar.transform = CGAffineTransform(translationX: 0, y: navigationBar.transform.ty - delta)

from amscrollingnavbar.

guicolares avatar guicolares commented on May 29, 2024 2

Thanks @chinh-tran , I had the same bug and resolved it with this fix. May I create a PR ?

my fix branch

from amscrollingnavbar.

closure11 avatar closure11 commented on May 29, 2024 1

@andreamazz Do you have any ideas about this? Apparently the main feature of this library was broken.

from amscrollingnavbar.

dungInte avatar dungInte commented on May 29, 2024 1

I have the same problem too. if use the transform by chinhtran it helps scroll to the top but navigation will lag frame size and title too.

from amscrollingnavbar.

TheDreamsWind avatar TheDreamsWind commented on May 29, 2024

I'm experiencing similar problem under iOS 14.5, and as far as i'm concerned the linked discussion has nothing to do with the library, since it modifies the nav. ber on behalf of the view controller owning it.

from amscrollingnavbar.

dongtg-1485 avatar dongtg-1485 commented on May 29, 2024

@guicolares
Thanks for your pull request. But when you use CGAffineTransform to update NavigationBar, topViewController.view.frame was not updated when scroll slowly.
I think we need to find an other solution.

from amscrollingnavbar.

andreamazz avatar andreamazz commented on May 29, 2024

@andreamazz Do you have any ideas about this? Apparently the main feature of this library was broken.

Nope, I need to find the time to test this. Did anyone test against 15.2 beta by any chance?

from amscrollingnavbar.

anhnt2309 avatar anhnt2309 commented on May 29, 2024

Any update on this? This break my app on app store.

from amscrollingnavbar.

andreamazz avatar andreamazz commented on May 29, 2024

I've looked into this, honestly I don't know how to fix it, you can see during the scrolling that UIKit is fighting against both the frame change and the opacity change, I'm afraid that's not much we can do at this point. I was hoping for an issue with 15.1, but 15.2.1 behaves the same. Why did they start enforcing this with 15.1 is beyond my comprehension.

from amscrollingnavbar.

Okizeme avatar Okizeme commented on May 29, 2024

I think that answer from Apple might interest you: https://developer.apple.com/forums/thread/691975

from amscrollingnavbar.

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.