Salah Salah - 5 months ago 53
Swift Question

Swift How to hide Carrier, Time and battery in IOS

i'm getting annoying when i see that bar in top of playing video.
How can i hide\unhide status bar in viewcontroller ?

enter image description here

Any help will be appreciated.


In your media player view controller:

override var prefersStatusBarHidden: Bool {
    return true