Can UIPresentationController fully replace SWRevealViewController?

SWRevealViewController is “A UIViewController subclass for revealing a rear (left and/or right) view controller behind a front controller, inspired by the Facebook app”

https://github.com/John-Lluch/SWRevealViewController


I had just finished implementing SWRevealViewController in my app when I read about the new UIPresentationController in iOS 8/viewed the WWDC video and realized that it served a similiar purpose as far as allowing a side panel to slide in on an iPhone.

How much is possible with this new functionality? Can it

1. Allow the cool drag and drop of panels? Everything I saw on the WWDC video involved animations. The side panels weren't dragged in, instead they slid in with a static aniation (still cool but not quite as cool)

2. Let the front VC to be moved out of the way to reveal the menu *underneath*? This is similar to the Facebook app. Instead of the panel being added on top as was done on the WWDC video, it was shown underneath the main view.

3. Can all this be done relatively simply? If UIPresentationController is the better solution I'd like to switch to that, but not if it means I need to redo everything that SWRevealViewController inside of UIPresentationController.

Based on all the items listed above, I believe you are going to have to write some custom code. 🙂


For others reading, the original post is referring to WWDC 2014 video titled "A Look Inside Presentation Controllers" in https://developer.apple.com/videos/wwdc/2014/


Maybe you could suggest that Ray Wenderlich and the gang update the following tutorial to use UIPresentationController: http://www.raywenderlich.com/78568/create-slide-out-navigation-panel-swift


Ray's Twitter is @rwenderlich and his team's twitter list is https://twitter.com/rwenderlich/lists/raywenderlich-com-team


An additional option is to download the sample code from WWDC 2014 and play around with it a bit to get a feel for what would be involved: https://developer.apple.com/library/ios/samplecode/LookInside/Introduction/Intro.html

Can UIPresentationController fully replace SWRevealViewController?
 
 
Q