Giter Site home page Giter Site logo

Comments (5)

NicholasBellucci avatar NicholasBellucci commented on May 10, 2024

This could be possible. I would need to take a look into it.

from statefultabview.

NicholasBellucci avatar NicholasBellucci commented on May 10, 2024

After reviewing this further I do not think this will be possible as that setting needs to occur in a ViewController that is pushed onto the stack and with the way SwiftUI works there isn't a way to properly do this setting. If you have any ideas please let me know but this is what I have gathered so far.

from statefultabview.

MatteCarra avatar MatteCarra commented on May 10, 2024

I was trying to find possible solutions on how to hide the bottom bar when navigating to a NavigationLink: https://github.com/MatteCarra/StatefulTabView

The current solution I'm testing is to have an Environment object with an hidden boolean property created by the StatefulTabView: https://github.com/MatteCarra/StatefulTabView/blob/bba8541f7deac1d9adf805b42f5f773a17a0a625/Sources/StatefulTabView/StatefulTabView.swift#L47
NavigationLink destination that want to hide the tab bar will change that environment object onAppear and onDisappear, with a convenient modifier: https://github.com/MatteCarra/StatefulTabView/blob/bba8541f7deac1d9adf805b42f5f773a17a0a625/Example/Example/ContentView.swift#L22

I'm very unexperienced with both SwiftUI and particularly with UIKit.
How do I hide the tab bar and make the view fill the entire space.
Currently the tab bar is hidden, but the space is not used and I get an empty area at the bottom: https://github.com/MatteCarra/StatefulTabView/blob/bba8541f7deac1d9adf805b42f5f773a17a0a625/Sources/StatefulTabView/Helpers/TabBarController.swift#L40

Would this solution be good enough for your project?
How do I make SwiftUI tabs use the space left by the hidden tab bar?

Thanks in advance

from statefultabview.

MatteCarra avatar MatteCarra commented on May 10, 2024

I've noticed you have re-opened the issue.
What are you thinking about that?
Thanks in advance

from statefultabview.

NicholasBellucci avatar NicholasBellucci commented on May 10, 2024

I have re-opened to remind myself to look when I have some time. I will say though if there are issues with bottom space being empty and it seems consistent I won't be able to add this solution as I am unsure the fix.

from statefultabview.

Related Issues (9)

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.