Deleting CoreData Item which is also an @ObservedObject in DetailView causing App Crash in Swift 5
问题 i am currently working with SwiftUI and CoreData . Situation: I have a User Detail View with a Delete Button at the Bottom. When pressed, the Core Data Entry of the User is getting deleted and the App Navigation goes back to the Root Navigation View, which is a List of all Users. Problem: Every Time the Delete Button is clicked the App crashes with the following Error Message : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[User timeCreated]: