Files
featherVoice/QXLive/Third/HWPopController/Classes/TransitioningDelegate/HWPopTransitioningDelegate.m
2026-01-27 19:10:51 +08:00

33 lines
1.0 KiB
Objective-C
Executable File

//
// HWPopTransitioningDelegate.m
// HWPopController
//
// Created by heath wang on 2019/5/21.
//
#import "HWPopTransitioningDelegate.h"
#import "HWPopControllerAnimatedTransitioning.h"
@implementation HWPopTransitioningDelegate
- (instancetype)initWithPopController:(HWPopController *)popController {
self = [super init];
if (self) {
_popController = popController;
}
return self;
}
#pragma mark - UIViewControllerTransitioningDelegate
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
return [[HWPopControllerAnimatedTransitioning alloc] initWithState:HWPopStatePop popController:self.popController];
}
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed {
return [[HWPopControllerAnimatedTransitioning alloc] initWithState:HWPopStateDismiss popController:self.popController];
}
@end