How To Change the Status Bar Color With SwiftUI on a Specific View
A small hack using ViewModifier in SwiftUI
Published in
2 min readMar 10, 2022
Remember the good old days in UIKit when it was quite simple to change the status bar color just by using this code on a specific UIViewController
?
override var preferredStatusBarStyle: UIStatusBarStyle {
.lightContent
}