Skip to content

Commit

Permalink
Merge branch 'develop' into fix/parameter-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ZevEisenberg authored Mar 30, 2020
2 parents 45fc248 + 9757ae6 commit 37d7634
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes for users of the library currently on `develop`:

- Removed `FLAnimatedImage` from .gitmodules.
- Change `NYTPhotosViewController` to use fullscreen presentation by default, so it causes the presenting view to disappear behind it, i.e. to get `-viewWillDisappear:` and `-viewDidDisappear` called on it.
- Fix unbalanced calls to begin/end appearance transitions.
- Modified comment parameter in `NYTPhotosViewController` and `NYTPhotoViewerSinglePhotoDataSource` to match parameter in signature. Removes compilation warning.

## [4.0.0](https://github.com/nytimes/NYTPhotoViewer/releases/tag/4.0.0)
Expand Down
8 changes: 6 additions & 2 deletions NYTPhotoViewer/NYTPhotoTransitionAnimator.m
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,12 @@ + (UIView *)newAnimationViewFromView:(UIView *)view {

#pragma mark - UIViewControllerAnimatedTransitioning
- (void)animationEnded:(BOOL)transitionCompleted {
[self.toViewController endAppearanceTransition];
[self.fromViewController endAppearanceTransition];
if (self.toViewController.parentViewController) {
[self.toViewController endAppearanceTransition];
}
if (self.fromViewController.parentViewController) {
[self.fromViewController endAppearanceTransition];
}
}

- (NSTimeInterval)transitionDuration:(id <UIViewControllerContextTransitioning>)transitionContext {
Expand Down

0 comments on commit 37d7634

Please sign in to comment.