CHXSwipeBackPopAnimator 1.5

CHXSwipeBackPopAnimator 1.5

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Moch, Moch Xiao.



  • By
  • Moch

Swipe back pop animation, not just trigger screen edge!

How does it look like?

     

How to use

  • add pod CHXSwipeBackPopAnimator your pod file
  • run pod update --no-repo-update --verbose
  • Edit you UINavigationController file

    #import <CHXSwipeBackPopAnimator/CHXSwipeBackPopAnimator.h>
    ...
    @property (nonatomic, strong) CHXPopAnimatorCarrier *carrier;
    ...
    self.carrier = [[CHXPopAnimatorPayload alloc] initWithNavigationController:self];
    self.delegate = self.carrier;
  • Temporary shield

    - (void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];
    
        [self.navigationController chx_disableInteractivePopGestureRecognizerButPreventScreenEdge:NO];
    }
    
    - (void)viewWillDisappear:(BOOL)animated {
        [super viewWillDisappear:animated];
    
        [self.navigationController chx_enableInteractivePopGestureRecognizer];
    }
    
    

Requirements

  • iOS 7
  • ARC

Refrence