BaseViewTapGestureDelegate.m 494 B

1234567891011121314151617
  1. //
  2. // BaseViewTapGestureDelegate.m
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/30.
  6. //
  7. #import "PCSBaseViewController.h"
  8. #import "BaseViewTapGestureDelegate.h"
  9. @implementation BaseViewTapGestureDelegate
  10. - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{
  11. CGPoint pt = [gestureRecognizer locationInView:self.controller.controlPanelBackground];
  12. return !CGRectContainsPoint(self.controller.controlPanelBackground.bounds, pt);
  13. }
  14. @end