Hibit_iOS/Pods/HWPanModal/Sources/Delegate/HWPanModalPresentationDelegate.h
2024-06-07 11:41:02 +08:00

30 lines
869 B
Objective-C

//
// HWPanModalPresentationDelegate.h
// HWPanModal
//
// Created by heath wang on 2019/4/29.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class HWPanModalInteractiveAnimator;
typedef NS_ENUM(NSInteger, PanModalInteractiveMode) {
PanModalInteractiveModeNone,
PanModalInteractiveModeSideslip, // 侧滑返回
PanModalInteractiveModeDragDown, // 向下拖拽返回
};
NS_ASSUME_NONNULL_BEGIN
@interface HWPanModalPresentationDelegate : NSObject <UIViewControllerTransitioningDelegate, UIAdaptivePresentationControllerDelegate, UIPopoverPresentationControllerDelegate>
@property (nonatomic, assign) BOOL interactive;
@property (nonatomic, assign) PanModalInteractiveMode interactiveMode;
@property (nonnull, nonatomic, strong, readonly) HWPanModalInteractiveAnimator *interactiveDismissalAnimator;
@end
NS_ASSUME_NONNULL_END