Giter Club home page Giter Club logo

Comments (11)

LeoNatan avatar LeoNatan commented on August 22, 2024 1

In addition to status bar frame changes, the framework should also consider when the status bar becomes hidden and shown. The same notifications are thrown for showing / hiding the status bar, so it is possible to add all handling there.

from hidingnavigationbar.

StefaniOSApps avatar StefaniOSApps commented on August 22, 2024 1

Solution founded ! .. plz create a PullRequest

fileprivate func statusBarHeight() -> CGFloat {
        if UIApplication.shared.isStatusBarHidden {
            return 0
        }
        
        let statusBarSize = UIApplication.shared.statusBarFrame.size
        let extendedStatusBarDifference = abs(viewController.view.bounds.height - (UIApplication.shared.delegate?.window??.frame.size.height ?? UIScreen.main.bounds.height))
        
        return min(statusBarSize.width, statusBarSize.height) - extendedStatusBarDifference
    }

from hidingnavigationbar.

btc avatar btc commented on August 22, 2024

To elaborate. The navigation bar juts out into the screen when the status bar is expanded.

img_0306

from hidingnavigationbar.

tristanhimmelman avatar tristanhimmelman commented on August 22, 2024

If anybody has time to add this functionality I would happily accept a PR to support this. I currently do not have time to work on this

from hidingnavigationbar.

btc avatar btc commented on August 22, 2024

Unless I am misunderstanding the original post on this issue, I wouldn't consider this issue a request for additional functionality. The issue I am reporting is a bug.

Do you know what's causing the issue? If you can point me in the right direction, perhaps I could take a shot at it.

from hidingnavigationbar.

tristanhimmelman avatar tristanhimmelman commented on August 22, 2024

@btc this feature was never actually supported by the library which is why I don't call it a bug.

I believe the root of the issue is that the ViewController changes its frame and HidingNavigationBarManager does not respond to this event. I would start in that class by monitoring the following events:

  • UIApplicationWillChangeStatusBarFrameNotification
  • UIApplicationDidChangeStatusBarFrameNotification

from hidingnavigationbar.

btc avatar btc commented on August 22, 2024

Thank you. I'll have a look at this and give it a shot.

from hidingnavigationbar.

StefaniOSApps avatar StefaniOSApps commented on August 22, 2024

What is the current status of this problem?

simulator screen shot - iphone 5s - 2019-01-14 at 05 53 22

from hidingnavigationbar.

l12ab avatar l12ab commented on August 22, 2024

I use another library since I submitted this issue and didnt get response.

https://github.com/andreamazz/AMScrollingNavbar

from hidingnavigationbar.

StefaniOSApps avatar StefaniOSApps commented on August 22, 2024

Yes, I know this framework. I create my own at https://github.com/StefaniOSApps/AMScrollingNavbar - but it sucks - it use only tap gesture and too many bugs. I hope i can fix the other bugs at this framework. The current bug was fixed.

from hidingnavigationbar.

StefaniOSApps avatar StefaniOSApps commented on August 22, 2024

I want to upgrade this Framework to iOS 11.
https://github.com/StefaniOSApps/TLYShyNavBar

Any help is welcome. Many things are already working.

from hidingnavigationbar.

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.