酷店

CWDrawerTransition.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // CWDrawerTransition.h
  3. // ViewControllerTransition
  4. //
  5. // Created by chavez on 2017/6/27.
  6. // Copyright © 2017年 chavez. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "CWLateralSlideConfiguration.h"
  11. typedef NS_ENUM(NSUInteger,CWDrawerTransitiontype) {
  12. CWDrawerTransitiontypeShow = 0, // 显示抽屉
  13. CWDrawerTransitiontypeHidden, // 隐藏抽屉
  14. };
  15. typedef NS_ENUM(NSUInteger,CWDrawerAnimationType) {
  16. CWDrawerAnimationTypeDefault = 0,
  17. CWDrawerAnimationTypeMask
  18. };
  19. @interface CWDrawerTransition : NSObject<UIViewControllerAnimatedTransitioning>
  20. - (instancetype)initWithTransitionType:(CWDrawerTransitiontype)transitionType animationType:(CWDrawerAnimationType)animationType configuration:(CWLateralSlideConfiguration *)configuration;
  21. + (instancetype)transitionWithType:(CWDrawerTransitiontype)transitionType animationType:(CWDrawerAnimationType)animationType configuration:(CWLateralSlideConfiguration *)configuration;
  22. @end
  23. @interface CWMaskView : UIView<UIGestureRecognizerDelegate>
  24. @property (nonatomic,copy) NSArray *toViewSubViews;
  25. + (instancetype)shareInstance;
  26. + (void)releaseInstance;
  27. @end
  28. UIKIT_EXTERN NSString *const CWLateralSlideAnimatorKey;
  29. UIKIT_EXTERN NSString *const CWLateralSlideMaskViewKey;
  30. UIKIT_EXTERN NSString *const CWLateralSlideInterativeKey;
  31. UIKIT_EXTERN NSString *const CWLateralSlidePanNoticationKey;
  32. UIKIT_EXTERN NSString *const CWLateralSlideTapNoticationKey;
  33. UIKIT_EXTERN NSString *const CWLateralSlideDirectionKey;