How do I avoid ionic header from getting behind ios status bar like this?
I created the header with following code:
I found a better option to do this. In AppModule.ts make change to IonicModule.forRoot(MyApp, {statusbarPadding: true}), and from app.component.ts remove or comment statusBar.overlaysWebView(true); it will fix your problem for IOS.
IonicModule.forRoot(MyApp, {statusbarPadding: true}),
statusBar.overlaysWebView(true);