With SwiftUI you should in most cases use SwiftUI lifecycle.
If you need some AppDelegate methods you can use @UIApplicationDelegateAdaptor
:
There are some cases, however, when you need UIKit lifecycle:
- access to
SceneDelegate
(see Is there any way to call SceneDelegate methods in iOS 14 app life cycle?) - deployment target iOS 13 (SwiftUI lifecycle is available on iOS 14+).
CLICK HERE to find out more related problems solutions.