Skip to content

Enable iOS 7+ swipe-to-back when custom back button is set.

License

Notifications You must be signed in to change notification settings

raelsayied/SwipeBack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwipeBack

CocoaPods

Enable iOS7 swipe-to-back when custom back button is set.

SwipeBack plays with iOS native gesture recognizers, so you can also use it to disable swipe-to-back feature.

Getting Started

Use CocoaPods.

Podfile

platform :ios, '7.0'
pod 'SwipeBack', '~> 1.1'

Usage

Basic Usage

Just install SwipeBack with CocoaPods. Your application now supports swipe-to-back feature.

Enabling and Disabling

You can set swipeBackEnabled for a specific UINavigationController. Default value is YES.

#import <SwipeBack/SwipeBack.h>

// ...

- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.swipeBackEnabled = NO;
}

License

SwipeBack is under MIT license. See LICENSE for more info.

About

Enable iOS 7+ swipe-to-back when custom back button is set.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.1%
  • Ruby 2.9%