Code Monkey home page Code Monkey logo

dknavigationdrawer's Introduction

DKNavigationDrawer

Navigation Drawer for iOS using Swift.

Screenshot

  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) {
      rootNav?.drawerToggle()
}
//Implement this as this is a delegate method
   func dkNavDrawerSelection(_ selectionIndex: Int) {
}

dknavigationdrawer's People

Contributors

darshan2509 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dknavigationdrawer's Issues

need your help

Is there a Fully project with demo?because I am a iOS beginner...thank you!

drawerToggle() function didn't get called

Hi dear , I love your menu , but drawerToggle() func didn't get called and I don't know why . I did all things step by step as you said but this is my problem .
What can I do to fix it ???

Cells

Hello,

How do i setup the cell clicking process (In his example how can i move to a new storyboard by clicking on the Profile cell?)

How can i keep the DKNavigationDrawer for all my storyboards?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.