Archived
1
Fork 0

Don't show duplicate posts when importing

This commit is contained in:
redstrate 2020-05-24 23:52:56 -04:00
parent b610f02f2e
commit a684d788f9

View file

@ -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)")
}