Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Xcode 12 Core Data FetchRequest issues
Solutioned In my case the solutions is that the context must be defined inside the struct App. import SwiftUI @main struct CoreDataDemoApp: App {     private let context = CoreDataStack.context. var body: some Scene {         WindowGroup {             ContentView()                 .environment(\.managedObjectContext, context)         }     } }
Jul ’20