kavsoft
patreon
SwiftUI: Hide Navigation Bar On Swipe - iOS 17 - Xcode 15
🕑 Added 2023-09-09 13:56:57 +0000 UTCSource Code For SwiftUI: Hide Navigation Bar On Swipe - iOS 17 - Xcode 15.
Download Code 👇
Comments
I AM
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 getting Value of type 'some View' has no member 'hideNavBarOnSwipe'
Kavsoft
Yes, it will work; simply remove the new on change modifier and replace it with onAppear and the old onChange view modifier.
Hi, Is this only for min. iOS 17?