FWSwipeAnimatedTransition


@interface FWSwipeAnimatedTransition : FWAnimatedTransition

滑动转场动画类,默认上下

  • 创建滑动转场,指定进入(push|present)和消失(pop|dismiss)方向

    Declaration

    Objective-C

    + (nonnull instancetype)
        transitionWithInDirection:(UISwipeGestureRecognizerDirection)inDirection
                     outDirection:(UISwipeGestureRecognizerDirection)outDirection;
  • 指定进入(push|present)方向,默认上滑Up

    Declaration

    Objective-C

    @property (nonatomic) UISwipeGestureRecognizerDirection inDirection;
  • 指定消失(pop|dismiss)方向,默认下滑Down

    Declaration

    Objective-C

    @property (nonatomic) UISwipeGestureRecognizerDirection outDirection;