Skip to content

sonnn1992/SloppySwiper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SloppySwiper

License: MIT CocoaPods

SloppySwiper is a UINavigationController delegate that allows swipe back gesture to be started from anywhere on the screen (not only from the left edge).

Note

  • the library recreates the default pop animation, so it doesn't look exactly the same as when interactivePopGestureRecognizer is used:
  • the gesture can collide with other pan to the right gestures

Demo GIF

Usage

SloppySwiper can be set either in the Interface Builder or in code. The IB usage is presented in the example project (see Navigation Controller Scene in Main.storyboard). You can set it up programmatically as follows:

#import "SloppySwiper.h"
...
@property (strong, nonatomic) SloppySwiper *swiper;
...
self.swiper = [[SloppySwiper alloc] initWithNavigationController:navigationController];
navigationController.delegate = self.swiper;

Demo

To run the example project; clone the repo, and run pod install from the Example directory first. Alternatively, run pod try SloppySwiper from the command line.

Requirements

  • iOS 7
  • ARC

Installation

SloppySwiper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SloppySwiper"

Author

Arkadiusz Holko:

Credits

I'd like to thank:

About

UINavigationController delegate that allows swipe back gesture to be started from anywhere on the screen (not just from the edge).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 86.3%
  • Ruby 13.7%