12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // CWDrawerTransition.h
- // ViewControllerTransition
- //
- // Created by chavez on 2017/6/27.
- // Copyright © 2017年 chavez. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "CWLateralSlideConfiguration.h"
- typedef NS_ENUM(NSUInteger,CWDrawerTransitiontype) {
- CWDrawerTransitiontypeShow = 0, // 显示抽屉
- CWDrawerTransitiontypeHidden, // 隐藏抽屉
- };
- typedef NS_ENUM(NSUInteger,CWDrawerAnimationType) {
- CWDrawerAnimationTypeDefault = 0,
- CWDrawerAnimationTypeMask
- };
- @interface CWDrawerTransition : NSObject<UIViewControllerAnimatedTransitioning>
- - (instancetype)initWithTransitionType:(CWDrawerTransitiontype)transitionType animationType:(CWDrawerAnimationType)animationType configuration:(CWLateralSlideConfiguration *)configuration;
- + (instancetype)transitionWithType:(CWDrawerTransitiontype)transitionType animationType:(CWDrawerAnimationType)animationType configuration:(CWLateralSlideConfiguration *)configuration;
- @end
- @interface CWMaskView : UIView<UIGestureRecognizerDelegate>
- @property (nonatomic,copy) NSArray *toViewSubViews;
- + (instancetype)shareInstance;
- + (void)releaseInstance;
- @end
- UIKIT_EXTERN NSString *const CWLateralSlideAnimatorKey;
- UIKIT_EXTERN NSString *const CWLateralSlideMaskViewKey;
- UIKIT_EXTERN NSString *const CWLateralSlideInterativeKey;
- UIKIT_EXTERN NSString *const CWLateralSlidePanNoticationKey;
- UIKIT_EXTERN NSString *const CWLateralSlideTapNoticationKey;
- UIKIT_EXTERN NSString *const CWLateralSlideDirectionKey;
|