My app has 3 tabs (Read, Discover, Profile). In one specific view that is navigated to from the the Read view, I want to hide the tab view and show a custom toolbar/tab bar that will show action buttons (e.g, save, like).
I have been Googling and searching Stack Overflow for 2 days and no luck. This is what I've seen / tried:
- Hide tab view: Seems like this is simply not possible with SwiftUI. There are a few hacks posted on this site but they don't work for me (e.g., try use UITabBarController modifications) or too compromised (e.g., wrap tab view in navigation view which results in tab view disappearing in all sub views)
- Use root page: This works, but then navigation view breaks (can't get back button back)
- Conditional tab view: I didn't see this posted anywhere, but gave it a go. I tried an if statement in the tab view with a bool state variable, where the main tabs (Read, Discover, Profile) are set to default, and on the specific sub view page, a different tab view is used (e.g, with Save buttons). But that also doesn't seem to work.
Anyone have ideas or examples of working code? Thanks!