canopas/UIPilot

How to hide back button completely?

Opened this issue · 2 comments

I tried:

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

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

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

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