How to hide the status bar with its content on iOS 10 with Swift 3?

Viewed 1773

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.

3 Answers
Related