diff --git a/Gallery/HomeViewController.swift b/Gallery/HomeViewController.swift index c54fd97..caf85c4 100644 --- a/Gallery/HomeViewController.swift +++ b/Gallery/HomeViewController.swift @@ -48,11 +48,6 @@ class HomeViewController: UIViewController, UIDocumentPickerDelegate { post.setValue(path.lastPathComponent, forKeyPath: "name") try managedContext.save() - collectionManager?.posts.append(post) - - DispatchQueue.main.async { - self.collectionView.reloadData() - } } catch let error as NSError { print("Could not save. \(error), \(error.userInfo)") }