I think this issue could be caused by ModelContext AutoSave, it only actually saves the data after the data have been inserted for about 30 seconds, during this delay time, the modelContext.delete() function doesn't work.
Topic:
Programming Languages
SubTopic:
Swift
Tags: