Skip to content

r-plus/swiftui-hide-tab-when-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

SwiftUI hide tab when push

iOS 16 added API toolbar(_:for:) equivalent to hidesBottomBarWhenPushed.


TabView and NavigationView of SwiftUI components have not ability to hide/show tab bar when push to next view like hidesBottomBarWhenPushed property in UIKit.

This example bring back that ability to SwiftUI app, but I'm not recommended use this code because usual navigation by NavigationLink will probably broken when NavigationView and NavigationLink get out of dependence on UIKit in the future OS version.

demo.mov

Nice references

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages