I love the swipe pack thats inherited from embedding your views in a UINavigationController. Unfortunately i cannot seem to find a way to hide the Naviga
The answer of Hunter Monk is really awesome, but unfortunately in iOS 13.3.1, it does not work.
I will explain another way to hide UINavigationBar and not lose swipe to back gesture.
I have tested on iOS 13.3.1 and 12.4.3 and it works.
You need to create a custom class of UINavigationController and set that class for UINavigationController in Storyboard
Do NOT hide the NavigationBar on the Storyboard
Example on Storyboard:
And finally, put this: navigationBar.isHidden = true in viewDidLoad of CustomNavigationController class.
Make sure, do NOT use this method setNavigationBarHidden(true, animated: true) for hiding the NavigationBar.
import UIKit
class CustomNavigationController: UINavigationController {
override func viewDidLoad() {
super.viewDidLoad()
navigationBar.isHidden = true
}
}