Properly handle external library changes, avoid overzealous deselect

pull/1/head
Michael Kirk 6 years ago
parent 82d49350ef
commit ac7e2f76d6

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

Loading…
Cancel
Save