I am trying to hide status bar in one of my UIViewControllers (Swift 4).
Firstly, I set View controller-based status bar appearance to
I was searching for it and the one work for me is
Swift 5
override var prefersStatusBarHidden: Bool { return true }