mirror of
https://github.com/wnagrodzki/NGModalPresentation.git
synced 2025-04-05 12:02:21 +02:00
28 lines
992 B
Objective-C
28 lines
992 B
Objective-C
//
|
|
// NGModalTransitioningDelegate.m
|
|
// ModalPresentation
|
|
//
|
|
// Created by Wojciech Nagrodzki on 04/10/2014.
|
|
//
|
|
//
|
|
|
|
#import "NGModalTransitioningDelegate.h"
|
|
#import "NGModalAnimationController.h"
|
|
|
|
@implementation NGModalTransitioningDelegate
|
|
|
|
#pragma mark - UIViewControllerTransitioningDelegate
|
|
|
|
- (id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented
|
|
presentingController:(UIViewController *)presenting
|
|
sourceController:(UIViewController *)source
|
|
{
|
|
return [[NGModalAnimationController alloc] initWithMode:NGModalAnimationControllerModePresentation];
|
|
}
|
|
|
|
- (id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
|
|
{
|
|
return [[NGModalAnimationController alloc] initWithMode:NGModalAnimationControllerModeDismissal];
|
|
}
|
|
|
|
@end
|