2

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!

enter image description here

Kosuke Ogawa
  • 7,383
  • 3
  • 31
  • 52
Prato Das
  • 41
  • 7

1 Answers1

2

you can do this: (UIApplication.shared.value(forKey: "statusBar") as? UIView)?.backgroundColor = .clear

Denys
  • 114
  • 1
  • 6