Properly handle external library changes, avoid overzealous deselect

This commit is contained in:
Michael Kirk 2018-12-09 11:25:02 -05:00
parent 82d49350ef
commit ac7e2f76d6
1 changed files with 1 additions and 4 deletions

View File

@ -355,10 +355,7 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
// MARK: - PhotoLibraryDelegate
func photoLibraryDidChange(_ photoLibrary: PhotoLibrary) {
// We only want to let users select assets
// from a single collection.
selectedIds.removeAll()
photoCollectionContents = photoCollection.contents()
reloadDataAndRestoreSelection()
}