Core Data with SwiftUI Tutorial: Getting Started | raywenderlich.com

I have the same issue. Would love to know if you solved it or not.

Hi Keegan,

Thanks for a great tutorial. I’m a novice when it comes to iOS app development, almost entirely skipped UIKit and went straight to SwiftUI. I see that your app uses AppDelegate and SceneDelegate, where my app uses the App protocol in place of those two delegates.

I’m trying to understand if it is possible to add the code that instantiates the persistence container in the SceneDelegate class to the App protocol or if I have to use pre-iOS14 application code? The most information I could find is a recent blog posting that describes the different approaches for managing application lifecycle.