Reading List
Batch Delete in SwiftData from Michael Tsai RSS feed.
Batch Delete in SwiftData
Fatbobman: SwiftData provides a batch deletion API that is more modern and type-safe than its Core Data counterpart. […] Note: Unlike the standard single-object deletion modelContext.delete(_ model: T), batch deletion is only applied to the database after save() is executed. Coming from Core Data, this is really strange. With Core Data, NSBatchUpdateRequest and the other […]