XaiJu
kavsoft
kavsoft

patreon


SwiftUI: Hide Navigation Bar On Swipe - iOS 17 - Xcode 15

Source Code For SwiftUI: Hide Navigation Bar On Swipe - iOS 17 - Xcode 15.

Download Code πŸ‘‡

SwiftUI: Hide Navigation Bar On Swipe - iOS 17 - Xcode 15

Comments

Also, there appears to be a bug that occurs when you scroll down to hide the navigation bar, keeping your fingers on the scrolling, then scroll up to the top and let go. The navigation bar does not display again for some reason.

I AM

Can you create a similar version of this that's pure SwiftUI, which uses a custom view for the navigation bar?

I AM

I am getting Value of type 'some View' has no member 'hideNavBarOnSwipe'

Yes, it will work; simply remove the new on change modifier and replace it with onAppear and the old onChange view modifier.

Kavsoft

Hi, Is this only for min. iOS 17?


More Creators