1

I am making a dark theme for my app, where all the background is black and text and controls are orange. I also want the status bar to correspond to this theme, but .lightContent option, which is designed for dark backgrounds, returns white text color. I was wondering if it's at all possible to make status bar text something other than black or white (orange, in my case)?

enter image description here

Denys Triasunov
  • 539
  • 1
  • 4
  • 24

1 Answers1

1

It is not possible to change the status bar's text color as the apple provided only two colors for displaying status bar text which is white and black.

To display white text add the following stuff to your project Info.plist

View controller-based status bar appearance = false

Status bar style = Transparent black style (alpha of 0.5)

To display black text add the following stuff to your project Info.plist

View controller-based status bar appearance = false

Status bar style = Gray style (default) OR Opaque black style
Jayachandra A
  • 1,335
  • 1
  • 10
  • 21