SwiftUI @main AppDelegate
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!