Skip to content

Commit

Permalink
Merge pull request #107 from NYTimes/feature/remove-iOS7-method
Browse files Browse the repository at this point in the history
Removes Unused iOS 7 Workaround Method
  • Loading branch information
dzlobin committed Jan 4, 2016
2 parents 9d42d19 + 9747416 commit ebc37d2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Pod/Classes/ios/NYTPhotoTransitionAnimator.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,23 +187,6 @@ - (void)performZoomingAnimationWithTransitionContext:(id <UIViewControllerContex

#pragma mark - Convenience

- (CGAffineTransform)transformForOrientation:(UIInterfaceOrientation)orientation {
switch (orientation) {
case UIInterfaceOrientationLandscapeLeft:
return CGAffineTransformMakeRotation(-M_PI / 2.0);

case UIInterfaceOrientationLandscapeRight:
return CGAffineTransformMakeRotation(M_PI / 2.0);

case UIInterfaceOrientationPortraitUpsideDown:
return CGAffineTransformMakeRotation(M_PI);

case UIInterfaceOrientationPortrait:
default:
return CGAffineTransformMakeRotation(0);
}
}

- (BOOL)shouldPerformZoomingAnimation {
return self.startingView && self.endingView;
}
Expand Down

0 comments on commit ebc37d2

Please sign in to comment.