joehinkle11/Lazy-Pop-SwiftUI

The navigation bar display abnormal when cancel pop with `navigationBarHidden`

bougieL opened this issue · 2 comments

  • The example code is
struct Example: View {
    @State var selection = 0
    var body: some View {
        ZStack {
            Color.blue.edgesIgnoringSafeArea(.all)
        }
        .lazyPop()
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .edgesIgnoringSafeArea(.all)
        .navigationBarHidden(true)
    }
}
  • When swipe half then cancel swipe, the result is
    IMG_0722

Probably related to this issue because you used edgesIgnoringSafeArea

#3 (comment)

I was unable to replicate this bug as of Jan 29, 2023. Maybe Apple changed something in SwiftUI's internals which fixed it?