Skip to content

albertgh/ACSideslipTransition

Repository files navigation

ACSideslipTransition

Make presentViewController's Animation more like pushViewController's。

Installing

Drag ACSideslipTransition src folder into your project.

#import "UIViewController+ACSideslip.h"

Usage

  • Sideslip from some viewController to a new viewController
[self ac_sideslip:newVC completion:^{
    NSLog(@"sideslip complete");
}];
  • Dismiss Delegate
#import "ACSideslipSwipeInteractiveTransitionFinishedDelegate.h"

@interface YourViewController () <ACSideslipSwipeInteractiveTransitionFinishedDelegate>

...
#pragma mark - ACSideslipSwipeInteractiveTransitionFinishedDelegate

- (void)swipeInteractiveTransitionDidFinished
{
    NSLog(@"dismissed by gesture");
}

Requirements

  • ARC
  • iOS 7 +

ToDo

  • option for swipe from left edge or full viewController.view

License

WTFPL