RESideMenu
RESideMenu copied to clipboard
Swift Support
How to use this code in swift
Follow those step : 1- Install the library via pod
2- Add import RESideMenu to appDelegate
3- Add this code :
// Create side menu controller
//
let sideMenuViewController = RESideMenu.init(contentViewController: tabBarController, leftMenuViewController: nil, rightMenuViewController: menuController);
sideMenuViewController.backgroundImage = UIImage(named: "background");
sideMenuViewController.panGestureEnabled = true;
// Make it a root controller
//
if let window = window {
window.backgroundColor = UIColor.whiteColor()
window.rootViewController = sideMenuViewController
window.makeKeyAndVisible();
}
Make customization as you like in step 3