SwiftUI life-cycle iOS14 Where to put AppDelegate code?
问题 Now that AppDelegate and SceneDelegate are removed from SwiftUI, where do I put the code that I used to have in SceneDelegate and AppDelegate, Firebase config for ex? So I have this code currently in my AppDelegate: Where should I put this code now? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. FirebaseConfiguration.shared.setLoggerLevel