Skip to content

iThink32/SlidingMenu

Repository files navigation

SlidingMenu

A simple sliding menu that can be used on any controller

Usage:-

First copy the viewcontroller in the storyboard to your desired storyboard and set its file to SlidingViewController

and then initialize and present it like so:-

        let slidingController = SlidingViewController.instance()
        let menuController = ProfileRouter.setupModule(model: nil) // example child controller
        slidingController.initWith(controller: menuController)
        slidingController.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext
        self.navigationController?.present(slidingController, animated: false, completion: nil)

alt text

NOTE:- i have fixed the container view width in sliding view controller in the storyboard you should change it according to the width of the container view you want.You must also set the same width that u set for the container view in the @IBInspectable property of the class SlidingViewController.I know this can be optimised , will do it when i get time.

About

A simple sliding menu that can be used on any controller

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages