Awesome Open Source
Awesome Open Source


Navigation Drawer for iOS using Swift.


  1. Add DKNavDrawerDelegate and DrawerView to project.
  2. Assign class DKNavDrawer to your navigation controller
  3. Add a Right Bar Button to your RootViewController connect it to a action.
  4. RootViewController should conform to DKNavDrawerDelegate
  5. Initialize - var rootNav: DKNavDrawer?

In viewDidLoad() of RootViewController add 2 lines

rootNav = (navigationController as? DKNavDrawer)
rootNav?.dkNavDrawerDelegate = self

The button action code

@IBAction func btnToggle(_ sender: Any) {
//Implement this as this is a delegate method
   func dkNavDrawerSelection(_ selectionIndex: Int) {

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Swift (95,399
Navigation Drawer (151
Drawer (148
Related Projects