Skip to content

Commit

Permalink
Merge pull request #94 from atlassian/bugfix/animated-gif-dismiss-tra…
Browse files Browse the repository at this point in the history
…nsition

Fix animated gif does not animate to reference view on dismissal
  • Loading branch information
cdzombak committed Dec 1, 2015
2 parents 9eb29d6 + b7407fe commit 1edfe02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/ios/NYTPhotosViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ - (void)didPanWithGestureRecognizer:(UIPanGestureRecognizer *)panGestureRecogniz

- (void)dismissAnimated:(BOOL)animated {
UIView *startingView;
if (self.currentlyDisplayedPhoto.image || self.currentlyDisplayedPhoto.placeholderImage) {
if (self.currentlyDisplayedPhoto.image || self.currentlyDisplayedPhoto.placeholderImage || self.currentlyDisplayedPhoto.imageData) {
startingView = self.currentPhotoViewController.scalingImageView.imageView;
}

Expand Down

0 comments on commit 1edfe02

Please sign in to comment.