Skip to content

The navigation bar display abnormal when cancel pop with navigationBarHidden #5

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
bougieL opened this issue Aug 3, 2021 · 2 comments

Comments

@bougieL
Copy link

bougieL commented Aug 3, 2021

  • 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
@joehinkle11
Copy link
Owner

Probably related to this issue because you used edgesIgnoringSafeArea

#3 (comment)

@joehinkle11
Copy link
Owner

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

@bougieL bougieL closed this as completed Jul 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants