HWPanModalPanGestureDelegate.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. //
  2. // HWPanModalPanGestureDelegate.h
  3. // Pods
  4. //
  5. // Created by heath wang on 2022/8/1.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * In this framewok, we use UIPanGestureRecognizer to control user drags behavior.
  12. * The internal logic, there are two panGestureRecognizers delegate will response below delegate: the main panGesture used to control darg down, another panGesture used to control screen edge dismiss.
  13. * Implement this delegate and custom user drag behavior.
  14. * WARNING: BE CAREFUL, AND KNOW WHAT YOU ARE DOING!
  15. */
  16. @protocol HWPanModalPanGestureDelegate <NSObject>
  17. - (BOOL)hw_gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer;
  18. - (BOOL)hw_gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
  19. - (BOOL)hw_gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
  20. - (BOOL)hw_gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
  21. @end
  22. NS_ASSUME_NONNULL_END