https://github.com/appfigures/afswipetohide
Hide your toolbars with a swipe. Just like Safari for iOS.
https://github.com/appfigures/afswipetohide
Last synced: 11 months ago
JSON representation
Hide your toolbars with a swipe. Just like Safari for iOS.
- Host: GitHub
- URL: https://github.com/appfigures/afswipetohide
- Owner: appfigures
- License: mit
- Created: 2014-10-30T20:02:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-30T21:19:21.000Z (over 10 years ago)
- Last Synced: 2025-04-09T23:18:30.415Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 1.03 MB
- Stars: 293
- Watchers: 14
- Forks: 45
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AFSwipeToHide
[](http://cocoadocs.org/docsets/AFSwipeToHide)
[](http://cocoadocs.org/docsets/AFSwipeToHide)
[](http://cocoadocs.org/docsets/AFSwipeToHide)
A simple utility class to help achieve Safari's swipe-to-hide effect.
This class provides all the logic for creating the effect, but is completely decoupled from UI classes so it integrates cleanly with existing code. It can be easily used as a `UIScrollViewDelegate` or on its own. Check out
the [example project](https://github.com/appfigures/AFSwipeToHide/blob/master/Example/AFSwipeToHide/ViewController.m) for simple usage (shown in the animation below).
Works with iOS 5.0+

## Installation
AFSwipeToHide is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
pod "AFSwipeToHide"
## Author
[@oztune](http://twitter.com/oztune) from [@appFigures](http://twitter.com/appFigures)
## License
AFSwipeToHide is available under the MIT license. See the LICENSE file for more info.