Comments (5)
This could be possible. I would need to take a look into it.
from statefultabview.
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.
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.
I've noticed you have re-opened the issue.
What are you thinking about that?
Thanks in advance
from statefultabview.
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)
- [Maybe a bug] call on onAppear() HOT 5
- iOS 15 HOT 1
- that's not bad
- How to make tab icons a little smaller HOT 1
- On close the SwiftUI modal sheet - the tab icon has the grey colour (as if it is not selected) HOT 1
- self.tabBarController?.tabBar.isHidden = true HOT 1
- feature-request: unselectedItemTintColor HOT 3
- bug: opening modals reset tab view to first page HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statefultabview.