Hi,
I am having trouble with the IOS status bar. I would like to have a background color on the status bar, but looks like you cannot do this with Capacitor. I would like the background colour due to the screenshot:
I’m having the same status bar overlapping problem your screen shot shows. The Capacitor Status Bar plug in says the overlap settings do not work for iOS. How am I supposed to fix this?
I’ve seen many old posts with CSS workarounds that do not work anymore.
Please someone drop a light on this issue for us! Thanks!
If the Status Bar plugin doesn’t fit your needs, you can manually set the status bar color in the Main.storyboard file.
Go to the Main.storyboard file; select the View; and in the Attributes Inspector, change the Background Color to whichever color you’d like. The background color includes the status bar and shouldn’t affect your web app since the webview extends to the top of the screen (minus the statusbar).
Does anyone have any idea how to do this within xcode itself please. @thomasvidas the method you mentioned, I can’t see these options in xcode. It’s worth mentioning im using the SwiftUI.
I think the best way is to extend your header to cover the status bar. Place the header at the very top of the screen and push the toolbar content down with some padding.