Search code examples
androidiosswiftkotlinstatusbar

Android and iPhone topbar/Statusbar changing Pragmatically


I am new to App development I am trying to make an app which needs to access and change top bar/status bar on both iOS and Android. I have Searched many Sites even StackOverflow but all I get was It shows how to change colour of text in these bars, there are tremendous Coders are out there working fantastic on both platform, please can any one give me is it could be done? if yes then what is the approach. For more clarification I am uploading Images for top bars.

Android

enter image description here

And Iphone enter image description here

This is what I want to do. Change items or add items in the statusbar

enter image description here

Any Help will be highly appreciated.


Solution

  • In iOS:

    • Change in info.plist the row View controller-based status bar appearance and set it to NO
    • Change in appDelegate.swift in didFinishLaunchingWithOptions

      UIApplication.shared.statusBarStyle = .lightContent