paulw11 / Seam3

Cloudkit based persistent store for Core Data
Other
209 stars 25 forks source link

Delete object from iCloud #71

Open danielmekis opened 6 years ago

danielmekis commented 6 years ago

Hello, I have a little problem. When I delete an element, it will be removed from the collectionView but after 3 sec it loads back from the cloud.

if let notebook = fetchedResultsControllerNotebook?.object(at: IndexPath(row: i, section: 0)) { managedObjectContext.delete(notebook) coreDataStack.saveContext() projectsCollectionView.reloadData() }

What did I wrong?

paulw11 commented 6 years ago

I can't replicate this. Does it work if you refresh the fetched results controller?