From 6a4642ed9b77d685de7830d1b1356a08695cdf37 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Tue, 20 Mar 2018 13:11:49 -0400 Subject: [PATCH] Fix subsequent animation after swiping --- Signal/src/ViewControllers/MediaGalleryViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Signal/src/ViewControllers/MediaGalleryViewController.swift b/Signal/src/ViewControllers/MediaGalleryViewController.swift index f2de5ced0..ee642c3fb 100644 --- a/Signal/src/ViewControllers/MediaGalleryViewController.swift +++ b/Signal/src/ViewControllers/MediaGalleryViewController.swift @@ -283,6 +283,9 @@ class MediaGalleryViewController: UINavigationController, MediaGalleryDataSource self.presentationView.image = initialDetailItem.fullSizedImage self.applyInitialMediaViewConstraints() + // Restore presentationView.alpha in case a previous dismiss left us in a bad state. + self.presentationView.alpha = 1 + // We want to animate the tapped media from it's position in the previous VC // to it's resting place in the center of this view controller. //