Skip to content

Instantly share code, notes, and snippets.

@jonathanarbely
Created June 2, 2019 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanarbely/98de2aa186f30620b338fa393bbc96b6 to your computer and use it in GitHub Desktop.
Save jonathanarbely/98de2aa186f30620b338fa393bbc96b6 to your computer and use it in GitHub Desktop.
Ionic 4 - White Status (Signal) Bar Color
// Use Case: When working with dark colors in your app's header section, the default black color of the iOS native signal/status bar can create a disturbing and hard to read appereance. Changing this to white gives the app a more user-friendly tone.
// Todo: In your app.component.ts you will find the following funtion inside of 'export class xyz'...
initializeApp() {
this.platform.ready().then(() => {
// ...change this line and add '.styleLightContent()' at the end instead of 'this.statusBar.styleDefault()'
this.statusBar.styleLightContent();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment