Skip to content

Commit

Permalink
Merge pull request #287 from nytimes/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
adam tecle committed Dec 5, 2019
2 parents d9cf272 + 0d98e88 commit 708d13f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
16 changes: 13 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@

Changes for users of the library currently on `develop`:

- Fixed some tests, added tests for NYTPhotoViewerSinglePhotoDataSource
- Fixed a strict warning and a subscripting bug in NYTPhotoViewerArrayDataSource.m
- Added support for interstitial views
## [3.0.1](https://github.com/nytimes/NYTPhotoViewer/releases/tag/3.0.1)

Changes for users of the library in 3.0.1:

- Fixed issue with beginAppearanceTransition being called on VCs with no parent VC

## [3.0.0](https://github.com/nytimes/NYTPhotoViewer/releases/tag/3.0.0)

Changes for users of the library in 3.0.0:

- Unit test improvements
- Interstitial view support + Swift sample
- NSObject conformance for example app

## [2.0.0](https://github.com/NYTimes/NYTPhotoViewer/releases/tag/2.0.0)

Expand Down
2 changes: 1 addition & 1 deletion NYTPhotoViewer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "NYTPhotoViewer"
s.version = "3.0.0"
s.version = "3.0.1"

s.description = <<-DESC
NYTPhotoViewer is a slideshow and image viewer that includes double tap to zoom, captions, support for multiple images, interactive flick to dismiss, animated zooming presentation, and more.
Expand Down
12 changes: 9 additions & 3 deletions NYTPhotoViewer/NYTPhotoTransitionAnimator.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,15 @@ - (void)setupTransitionContainerHierarchyWithTransitionContext:(id <UIViewContro
self.fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];

toView.frame = [transitionContext finalFrameForViewController:self.toViewController];
[self.toViewController beginAppearanceTransition:YES animated:YES];
[self.fromViewController beginAppearanceTransition:NO animated:YES];


if (self.toViewController.parentViewController) {
[self.toViewController beginAppearanceTransition:YES animated:YES];
}

if (self.fromViewController.parentViewController) {
[self.fromViewController beginAppearanceTransition:NO animated:YES];
}

if (![toView isDescendantOfView:transitionContext.containerView]) {
[transitionContext.containerView addSubview:toView];
}
Expand Down

0 comments on commit 708d13f

Please sign in to comment.