SwiftUI @main AppDelegate

Posted on May 27, 2021

When using @main on a SwiftUI.App and @UIApplicationDelegateAdaptor(AppDelegate.self) you can still have an AppDelegate without handling SwiftUI manually as without @main.

You don’t even need a SceneDelegate! A huge difference for tiny apps!