Properly handle external library changes, avoid overzealous deselect
This commit is contained in:
parent
82d49350ef
commit
ac7e2f76d6
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue