I have read this questions, but not only this ones, without finding a solution to my problem:
What it actually happens to me is that I achieve to hide the content of the status bar, but no the status bar itself:
override var prefersStatusBarHidden: Bool {
return true
}
It keeps appearing on the top of the screen, traslucid, with no content at all.