Hideable TabView

Hide TabView any where in the SwiftUI project.

Go to section:

Installation

Swift Package Manager

HideableTabView framework can be added to your project as a package thorught SPM.

Usage

   ThirdView()
       .hideTabBar() // animated parameter is set to true by default

    FourthView()
        .showTabBar() // animated parameter is set to true by default

    FirstView().onAppear {
        UITabBar.hideTabBar(animated: false)
    }

    SecondView().onAppear {
        UITabBar.showTabBar(animated: false)
    }

     Button {
         UITabBar.toogleTabBarVisibility()
   } label: {
       Text("Hide/Show Tab Bar")
  }

Demo

demo.mp4

GitHub

View Github