Fix for issue where pan selection won't update bottom bar

This commit is contained in:
Michelle Linington 2022-03-04 18:22:43 -08:00
parent 3591a35c5f
commit eb6d403eee

View File

@ -203,6 +203,8 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
let attachmentPromise: Promise<SignalAttachment> = photoCollectionContents.outgoingAttachment(for: asset)
delegate.imagePicker(self, didSelectAsset: asset, attachmentPromise: attachmentPromise)
collectionView.selectItem(at: indexPath, animated: true, scrollPosition: [])
updateDoneButtonAppearance()
case .deselect:
guard isSelected(indexPath: indexPath) else {
return
@ -210,6 +212,7 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
delegate.imagePicker(self, didDeselectAsset: asset)
collectionView.deselectItem(at: indexPath, animated: true)
updateDoneButtonAppearance()
}
}