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() }
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?