I have seen answers that solve the problem in the past using SceneDelegate which has now been removed with Swift's new lifecycle. Is there an updated solution to this problem?
Related oudated question: SwiftUI: Status bar color
Changing iOS status bar color (time, cell phone coverage, wifi, etc) per view using SwiftUI.