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
func photoLibraryDidChange(_ photoLibrary: PhotoLibrary) {
// We only want to let users select assets
// from a single collection.
selectedIds.removeAll()
photoCollectionContents = photoCollection.contents()
reloadDataAndRestoreSelection()
}

Loading…
Cancel
Save