From eb6d403eee0b5686e9e2d5cb23503ff3f8bbe86d Mon Sep 17 00:00:00 2001 From: Michelle Linington Date: Fri, 4 Mar 2022 18:22:43 -0800 Subject: [PATCH] Fix for issue where pan selection won't update bottom bar --- Signal/src/ViewControllers/Photos/ImagePickerController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Signal/src/ViewControllers/Photos/ImagePickerController.swift b/Signal/src/ViewControllers/Photos/ImagePickerController.swift index 1b5a201af1..85e8493fd7 100644 --- a/Signal/src/ViewControllers/Photos/ImagePickerController.swift +++ b/Signal/src/ViewControllers/Photos/ImagePickerController.swift @@ -203,6 +203,8 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat let attachmentPromise: Promise = 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() } }