Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devxoul/swipeback
Enable iOS 7+ swipe-to-back when custom back button is set.
https://github.com/devxoul/swipeback
ios objective-c swipeback
Last synced: 1 day ago
JSON representation
Enable iOS 7+ swipe-to-back when custom back button is set.
- Host: GitHub
- URL: https://github.com/devxoul/swipeback
- Owner: devxoul
- License: mit
- Created: 2014-08-26T06:05:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-21T19:27:25.000Z (over 8 years ago)
- Last Synced: 2025-01-14T11:13:33.717Z (8 days ago)
- Topics: ios, objective-c, swipeback
- Language: Objective-C
- Homepage:
- Size: 35.2 KB
- Stars: 324
- Watchers: 13
- Forks: 48
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SwipeBack
=========[![CocoaPods](http://img.shields.io/cocoapods/v/SwipeBack.svg?style=flat)](http://cocoapods.org/?q=name%3ASwipeBack%20author%3Adevxoul)
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](http://cocoapods.org).
#### Podfile
```ruby
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`.
```objc
#import// ...
- (void)viewWillAppear:(BOOL)animated
{
self.navigationController.swipeBackEnabled = NO;
}
```License
-------SwipeBack is under MIT license. See [LICENSE](https://github.com/devxoul/SwipeBack/blob/master/LICENSE) for more info.