UIPanGestureRecognizer(FWApplication)

@interface UIPanGestureRecognizer (FWApplication)

// 当前滑动方向,如果多个方向滑动,取绝对值较大的一方,失败返回0
@property (nonatomic, assign, readonly) UISwipeGestureRecognizerDirection fw_swipeDirection NS_REFINED_FOR_SWIFT;

// 当前滑动进度,滑动绝对值相对于手势视图的宽或高
@property (nonatomic, assign, readonly) CGFloat fw_swipePercent NS_REFINED_FOR_SWIFT;

// 计算指定方向的滑动进度
- (CGFloat)fw_swipePercentOfDirection:(UISwipeGestureRecognizerDirection)direction NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) UISwipeGestureRecognizerDirection fw_swipeDirection
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat fw_swipePercent
  • Undocumented

    Declaration

    Objective-C

    - (CGFloat)fw_swipePercentOfDirection:(UISwipeGestureRecognizerDirection)direction NS_REFINED_FOR_SWIFT;