Hi I am pretty new to iOS development. I needed to hide the white bar that appears under the status bar. I tried out solutions but could not really get it to work. What is the simplest solution to do this? Is there something that I can do in the app delegate? I want the map to be under the status bar, like the Uber application. Thanks!
Asked
Active
Viewed 1,785 times
2
-
The status bar is transparent by default. – Leo Dabus Dec 06 '17 at 02:09
-
1Maybe There is an issue with Storyboard CONSTRAINT. – Kosuke Ogawa Dec 06 '17 at 03:56
1 Answers
2
you can do this: (UIApplication.shared.value(forKey: "statusBar") as? UIView)?.backgroundColor = .clear

Denys
- 114
- 1
- 6