Skip to content

Example of hiding toolbar icons in a navigation bar when scrolling.

Notifications You must be signed in to change notification settings

harrisonrw/swiftui-hide-toolbar-icons-onscroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

swiftui-hide-toolbar-icons-onscroll

Example of hiding toolbar icons in a navigation bar when scrolling. The icons hide when scrolling down and reappear when scrolling up. Uses SwiftUI and the new onScrollPhaseChange modifier in iOS 18. For a cleaner look, the icons are hidden by changing the opacity.

swiftui-hide-toolbar-icons-onscroll

About

Example of hiding toolbar icons in a navigation bar when scrolling.

Topics

Resources

Stars

Watchers

Forks

Languages