Add a full-screen swipe-back gesture to any iOS app with minimal code changes.
Improve navigation feel in apps where users expect to swipe anywhere to go back.
Selectively disable the gesture on specific screens that have horizontal scroll views.
Install via CocoaPods. Drop in two files and it activates automatically. Requires iOS 7.0+. Extra step needed if screens contain horizontal scroll views.
FDFullscreenPopGesture is a small add-on for iOS app developers that makes it possible to swipe back from anywhere on the screen, not just the left edge. On iPhones running iOS 7 or later, Apple ships a built-in swipe-from-the-left-edge gesture that lets users go back to the previous screen. This library expands that zone to the full width of the display, matching the behavior many users expect after using apps that offer it natively. The library is written in Objective-C and works as a category on UINavigationController, which is the standard iOS component that manages a stack of screens. Because it uses a technique called AOP (aspect-oriented programming), you drop in two files and the feature activates across every navigation controller in the app automatically, with no extra wiring needed in your existing code. If a particular screen or controller should not respond to the fullscreen swipe, one-line properties let you turn it off selectively. The library also handles a tricky visual detail: when swiping between screens that have different navigation bar visibility states, say from a screen with a bar to one without, the transition animates correctly rather than snapping or flashing. There is one extra step required if a screen contains a scrollable list or any view that itself responds to horizontal swipes. In that case you need to tell the scroll view to cooperate with the gesture when the content is already scrolled to the left edge. The README includes the exact code block for that. Installation is through CocoaPods, a standard dependency manager for iOS projects. The library requires iOS 7.0 at minimum and is released under the MIT license.
← forkingdog on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.