caipivara
1/5/2015 - 2:26 PM

Default Drawer setup for MMDrawerController (https://github.com/mutualmobile/MMDrawerController). Use border gesture recognition for open an

Default Drawer setup for MMDrawerController (https://github.com/mutualmobile/MMDrawerController). Use border gesture recognition for open and full view swipe recognition for close.

let newCenterViewController = storyboard?.instantiateViewControllerWithIdentifier("CenterViewController") as UIViewController
let newLeftViewController = storyboard?.instantiateViewControllerWithIdentifier("LeftViewController") as UIViewController
let newRightViewController = storyboard?.instantiateViewControllerWithIdentifier("RightViewController") as UIViewController

centerViewController = newCenterViewController
leftDrawerViewController = newLeftViewController
rightDrawerViewController = newRightViewController

openDrawerGestureModeMask = MMOpenDrawerGestureMode.BezelPanningCenterView // Just from border
closeDrawerGestureModeMask = MMCloseDrawerGestureMode.All