Skip to content

Commit

Permalink
Merge branch 'release/4.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Kim committed Jul 11, 2024
2 parents a14eeaf + f81bf19 commit e52ee6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AnimatedTransitionKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "AnimatedTransitionKit"
s.version = "4.0.0"
s.version = "4.0.1"
s.summary = "UIViewController Transitioning Library."
s.description = "This library helps you to apply and create Custom UIViewController Transitions."
s.homepage = "https://github.com/pisces/AnimatedTransitionKit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,15 @@ - (void)panned:(UIPanGestureRecognizer *)panGestureRecognizer {
case InteractiveTransitionDirectionVertical:
translationValue = self.translation.y;
targetSize = screenSize.height;
break;
case InteractiveTransitionDirectionHorizontal:
translationValue = self.translation.x;
targetSize = screenSize.width;
break;
case InteractiveTransitionDirectionAll:
translationValue = self.translation.x + self.translation.y;
targetSize = screenSize.width + screenSize.height;
break;
}

const BOOL isAppearing = [self.transition isAppearing:self];
Expand All @@ -209,7 +212,6 @@ - (void)panned:(UIPanGestureRecognizer *)panGestureRecognizer {
const CGFloat percentForComparison = ABS(percent * multiply);

_shouldComplete = percentForComparison > self.percentForCompletion && [self.transition shouldCompleteInteractor:self];

[self updateInteractiveTransition:percent];
break;
}
Expand Down

0 comments on commit e52ee6f

Please sign in to comment.