36 lines
1.2 KiB
Objective-C
36 lines
1.2 KiB
Objective-C
//
|
|
// DDViewControllerAnimatedTransition.h
|
|
// DDAnimationsKit_Private
|
|
// Created by DDIsFriend on 2022/9/20.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSUInteger, DDViewControllerAnimatedTransitionType) {
|
|
DDViewControllerAnimatedTransitionNone = 0,
|
|
DDViewControllerAnimatedTransitionPush,
|
|
DDViewControllerAnimatedTransitionPop
|
|
};
|
|
|
|
@interface DDViewControllerAnimatedTransition : NSObject <UIViewControllerAnimatedTransitioning>
|
|
@property(nonatomic,assign)DDViewControllerAnimatedTransitionType animatedTransitionType;
|
|
|
|
- (instancetype)initWithTransitionType:(DDViewControllerAnimatedTransitionType)animatedTransitionType;
|
|
@end
|
|
|
|
|
|
@interface UIViewController (Transition)
|
|
/**
|
|
* This property is to save the state of the navigation bar during the transition animation.
|
|
*/
|
|
@property (nonatomic, strong, nullable)UIView *dd_transitionNavigationBarSnapshot;// save snapshot when push transition.
|
|
/**
|
|
* This property is to save the state of the tabBar during the transition animation.
|
|
*/
|
|
@property (nonatomic, strong, nullable)UIView *dd_transitionTabBarSnapshot;// save snapshot when push transition.
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|