RESideMenu icon indicating copy to clipboard operation
RESideMenu copied to clipboard

Swift Support

Open manishpurplefront opened this issue 10 years ago • 1 comments

How to use this code in swift

manishpurplefront avatar Oct 08 '15 07:10 manishpurplefront

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

chlebta avatar Nov 05 '15 14:11 chlebta