Skip to content

Commit

Permalink
Fixed issue 18
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Nov 25, 2014
1 parent baf1cc1 commit 877594b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions AMWaveTransition.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = "AMWaveTransition"
s.version = "0.5.2"
s.version = "0.5.3"
s.summary = "Custom transition between viewcontrollers holding tableviews. Each cell is animated to simulate a 'wave effect'."
s.homepage = "https://github.com/andreamazz/AMWaveTransition"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Andrea Mazzini" => "[email protected]" }
s.source = { :git => "https://github.com/andreamazz/AMWaveTransition.git", :tag => '0.5.2' }
s.source = { :git => "https://github.com/andreamazz/AMWaveTransition.git", :tag => '0.5.3' }
s.platform = :ios, '7.0'
s.source_files = 'AMWaveTransition', '*.{h,m}'
s.requires_arc = true
Expand Down
6 changes: 0 additions & 6 deletions AMWaveTransition/AMWaveTransition.m
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,6 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
toVC.view.transform = CGAffineTransformMakeTranslation(delta, 0);

[transitionContext containerView].backgroundColor = fromVC.view.backgroundColor;
fromVC.view.backgroundColor = UIColor.clearColor;
toVC.view.backgroundColor = UIColor.clearColor;

// First step is required to trigger the load of the visible cells.
[UIView animateWithDuration:0 delay:0 options:UIViewAnimationOptionCurveEaseIn animations:nil completion:^(BOOL finished) {
Expand All @@ -403,8 +401,6 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
[UIView animateWithDuration:self.duration + self.maxDelay delay:0 options:UIViewAnimationOptionCurveEaseIn animations:^{
[toVC.view setTransform:CGAffineTransformIdentity];
} completion:^(BOOL finished2) {
toVC.view.backgroundColor = [transitionContext containerView].backgroundColor;
[transitionContext containerView].backgroundColor = UIColor.clearColor;
[transitionContext completeTransition:YES];
}];
} else {
Expand All @@ -415,8 +411,6 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
} completion:^(BOOL finished2) {
[fromVC.view removeFromSuperview];
[transitionContext completeTransition:YES];
toVC.view.backgroundColor = [transitionContext containerView].backgroundColor;
[transitionContext containerView].backgroundColor = UIColor.clearColor;
}];
}

Expand Down

0 comments on commit 877594b

Please sign in to comment.