Add a slide-out navigation drawer to an iOS app without writing gesture and animation code from scratch.
Build a left and right side panel layout for an iPad app that reveals when the user swipes.
Set up swipe-to-open and tap-to-close gesture behavior on any view in an iPhone app.
Embed a hidden menu behind the main content screen, following the classic drawer navigation pattern.
CocoaPods listing not actively maintained, install by copying two source files directly into your Xcode project.
SWRevealViewController is an iOS library written in Objective-C that adds a sliding side-panel navigation pattern to iPhone and iPad apps. The pattern works like the side menu in the old Facebook app: the main screen slides sideways to reveal a hidden panel underneath, typically used as a navigation menu. The library supports panels on both the left and right sides. You install it by copying two files into your Xcode project. You create a SWRevealViewController by passing it your "rear" view controller (the hidden panel) and your "front" view controller (the main content). The library handles the sliding animation, gesture recognition (swipe to open, tap to close), and proper management of iOS lifecycle methods so that each screen in the stack behaves correctly when it appears and disappears. The pan gesture recognizer built into the library lets users drag the main content panel sideways to reveal the rear panel underneath. You can attach this gesture to any view in your app, such as a navigation bar, so the user can swipe from that area to open the menu. The position of the front panel can be set to several named values, from fully open to fully closed, with animation. The library is designed to work as a standard iOS view controller container, similar to how UINavigationController works. It can be set as the root of your app's window or embedded inside another container. It also provides delegate methods so you can respond to reveal and conceal events in your own code, and supports custom transition animations via the standard iOS animation protocol. The repository includes several example Xcode projects and supports Storyboard-based app layouts. It requires iOS 7 or later and uses ARC, which is the standard iOS memory management system. The README notes that the CocoaPods package listing is not actively kept up to date, so the easiest installation path is to copy the two source files directly.
← john-lluch on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.