How to deal with a faulted NSManagedObject in a SwiftUI .task{} that won’t unfault?
Sometimes unpredictably within an async .task{}
an NSManagedObject
has faulted, and is not unfaulted when the object’s members are referenced. How can I figure out why it has faulted, or prevent it from faulting, or forcibly unfault it? Thank you
How to transfer NSManagedObjects from one managed object context to another
I create new Song NSManagedObjects in a background managed object context since I expect the user to select as many as 10k to 100k songs.
How does core data manage memory when showing many items on a list view in SwiftUI?
If I’m showing 10 to 100k items using a fetch request property wrapper in a list view on SwiftUI, how does it manage memory?
How does core data manage memory when showing many items on a list view in SwiftUI?
If I’m showing 10 to 100k items using a fetch request property wrapper in a list view on SwiftUI, how does it manage memory?
Duplicate entities in main queue managed object context after a batch insert
When I fetch the entities after a batch insert in the main queue’s managed object context to update my SwiftUI list, I notice there are always duplicates.
Can I use external functions that perform fetch requests in a SwiftUI view?
Can I, in some way, use static functions like this one in a SwiftUI view
Which notation is better?
Currently building an app with swiftUI.
Inside my ContentView, I’ve the following code to fetch my CoreData data: