How can I change the statuds bar color on ios13 using Objecticve C? Thanks in advance.
How to change Status Bar Color on iOS 13 using Objective C?
**** good question.
It's quite easy actually:
UIView *statusBar = [[UIView alloc]initWithFrame:[UIApplication sharedApplication].keyWindow.windowScene.statusBarManager.statusBarFrame] ;
statusBar.backgroundColor = [UIColor whiteColor];
[[UIApplication sharedApplication].keyWindow addSubview:statusBar];
It is applicable the same code to Swift also?
you can use like this as well :
let statusBar = UIView()
statusBar.frame = UIApplication.shared.statusBarFrame
statusBar.backgroundColor = color
UIApplication.shared.keyWindow?.addSubview(statusBar)