Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9.3. How to hide view statusbar in xib?

Tags:

In Xcode < 9.3 we can hide status bar in view in xib by setting top bar simulated metrics to None.

But now in 9.3, when setting this to None, the status bar didn't hide.

Any ideas how to hide it?

enter image description here

like image 439
Svetoslav Avatar asked Apr 02 '18 12:04

Svetoslav


People also ask

How do I hide my status bar on storyboard?

step 1 : in your frameWork-Info. plst' file, add the key 'View controller-based status bar appearance' and set it to 'NO'.

How do I get rid of the status bar on my Iphone?

To completely hide it on the home screen, open up an app, such as Settings, and wait about three to four seconds. Press the home button again, and the status bar will be completely gone. The status bar will only be hidden on your home screen, so you'll still see it while using apps.

How do I hide status bar in SwiftUI?

Make sure your initial SwiftUI View is a Navigation view where you hide the status bar. Then if you navigate to a tab bar view or any subsequent views the status bar will be hidden.


1 Answers

You need to set simulated metrics size to "Freeform". Next, you need to change the size of your view to some custom value. After that Xcode will hide the status bar.

like image 190
Svetoslav Avatar answered Sep 28 '22 05:09

Svetoslav