UIPilot icon indicating copy to clipboard operation
UIPilot copied to clipboard

How to hide back button completely?

Open K4meko opened this issue 1 year ago • 2 comments

I tried:

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

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

K4meko avatar Aug 08 '24 07:08 K4meko

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 avatar Oct 03 '24 07:10 Zamorite

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

Zamorite avatar Oct 03 '24 07:10 Zamorite