Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to hide back button completely? #57

Open
K4meko opened this issue Aug 8, 2024 · 2 comments
Open

How to hide back button completely? #57

K4meko opened this issue Aug 8, 2024 · 2 comments

Comments

@K4meko
Copy link

K4meko commented Aug 8, 2024

I tried:

case .GalleryScreen: GalleryView().navigationBarBackButtonHidden(true) }

But the back button still flickers on the start and then disappears.
Thanks!

@Zamorite
Copy link

Zamorite commented Oct 3, 2024

You may want to try .uipNavigationBarHidden(true) on your view.

e.g:

GalleryView()
    .uipNavigationBarHidden(true)

It's one of the View extensions provided by UIPilot

@Zamorite
Copy link

Zamorite commented Oct 3, 2024

You should keep .navigationBarBackButtonHidden(true) if you also want to prevent people from popping routes using swipe gestures.

e.g:

GalleryView()
    .uipNavigationBarHidden(true)
    .navigationBarBackButtonHidden(true) // keep this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants