title: How to navigate to different storyboards along with sidemenu in swift 3
body: <p>I am using third party control for sidemenu named : <strong>MMDrawerController</strong>, and m handling UI using multiple storyboards.let me come to the point my sidemenu looks like this : <a href="https://i.stack.imgur.com/DKVCA.png" rel="nofollow noreferrer">Sidemenu Image</a> </p>
  
  <p><em>Trying to achieve :</em>  </p>
  
  <p>1)When I click on the Parent, "main.storyboard" should be displayed.</p>
  
  <p>2)When I click on the Management, "management.storyboard" should be displayed.</p>
  
  <p><strong>same sidemenu should be displayed across all storyboard file.</strong></p>
  
  <p>I have tried some code by my own but m not getting the sidemenu on "management.storyboard" :(</p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  
      switch(indexPath.row)
      {
      case 4:
          let mainstoryboard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
          var welview = mainstoryboard.instantiateViewController(withIdentifier: "WelcomeParentViewController") as! WelcomeParentViewController
          var welnav = UINavigationController(rootViewController: welview)
          var appdel : AppDelegate = UIApplication.shared.delegate as! AppDelegate
  
          appdel.centerContainer!.centerViewController = welnav
          appdel.centerContainer!.toggle(MMDrawerSide.left, animated: true, completion: nil)
          break
      case 5:
          let mainstoryboard : UIStoryboard = UIStoryboard(name: "Management-Storyboard", bundle: nil)
          var welview = mainstoryboard.instantiateViewController(withIdentifier: "ReportsViewController") as! ReportsViewController
          var welnav = UINavigationController(rootViewController: welview)
          var appdel : AppDelegate = UIApplication.shared.delegate as! AppDelegate
  
          appdel.centerContainer!.centerViewController = welnav
          appdel.centerContainer!.toggle(MMDrawerSide.left, animated: true, completion: nil)
          break
      default :
          break
  
  
      }
  </code></pre>
  
  <p><strong>I want same sidemenu across all storyboard file.</strong></p>
  
  <p>how to accomplish the above feature.Please Help.Thank you in advance.</p>
  
  <p><a href="https://i.stack.imgur.com/jz2gB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jz2gB.png" alt="copy bundle resources screenshot"></a></p>
  
  <p><strong>MMDrawerController Code inside the appdelegate.swift</strong></p>
  
  <pre><code>import UIKit
  import GoogleMaps
  
  @UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate {
  
  var window: UIWindow?
  var centerContainer : MMDrawerController?
  
  
  
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
      // Override point for customization after application launch.
  
      if isUserLoggedIn()
      {
          let appDelegate = UIApplication.shared.delegate as! AppDelegate
          appDelegate.gotoMainvc()
      }
      else
      {
          let rootViewController = self.window!.rootViewController
          let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
          let setViewController = mainStoryboard.instantiateViewController(withIdentifier: "LoginViewController") as! LoginViewController
          rootViewController?.navigationController?.popToViewController(setViewController, animated: false)
      }
      return true
  }
  
  func isUserLoggedIn() -&gt; Bool{
      if let accessToken = UserDefaults.standard.object(forKey: "access_token") as? String
      {
          if (accessToken.characters.count) &gt; 0{
              return true
          } else {
              return false
          }
  
      }
      else {
          return false
      }
  }
  func gotoMainvc()
  {
  
      var rootviewcontroller = self.window?.rootViewController
  
      if(UIDevice.current.userInterfaceIdiom == .phone)
      {
  
      let mainstoryboard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
  
          var centerviewcontroller = mainstoryboard.instantiateViewController(withIdentifier: "WelcomeParentViewController") as! WelcomeParentViewController
  
          var leftsideviewcontroller = mainstoryboard.instantiateViewController(withIdentifier: "LeftSideMenuViewController") as! LeftSideMenuViewController
          let leftsidenav = UINavigationController(rootViewController: leftsideviewcontroller)
          let centernav = UINavigationController(rootViewController: centerviewcontroller)
          centerContainer = MMDrawerController(center: centernav, leftDrawerViewController: leftsidenav)
  
          centerContainer?.openDrawerGestureModeMask = MMOpenDrawerGestureMode.panningCenterView
          centerContainer?.closeDrawerGestureModeMask = MMCloseDrawerGestureMode.panningCenterView
  
          window?.rootViewController = centerContainer
          window?.makeKeyAndVisible()
      }
      else{
  
          let mainstoryboard2 : UIStoryboard = UIStoryboard(name: "Storyboard-iPad", bundle: nil)
          var centerviewcontroller = mainstoryboard2.instantiateViewController(withIdentifier: "WelcomeParentViewController") as! WelcomeParentViewController
  
          var leftsideviewcontroller = mainstoryboard2.instantiateViewController(withIdentifier: "LeftSideMenuViewController") as! LeftSideMenuViewController
          let leftsidenav = UINavigationController(rootViewController: leftsideviewcontroller)
          let centernav = UINavigationController(rootViewController: centerviewcontroller)
          centerContainer = MMDrawerController(center: centernav, leftDrawerViewController: leftsidenav)
  
          centerContainer?.openDrawerGestureModeMask = MMOpenDrawerGestureMode.panningCenterView
          centerContainer?.closeDrawerGestureModeMask = MMCloseDrawerGestureMode.panningCenterView
  
          window?.rootViewController = centerContainer
          window?.makeKeyAndVisible()
      }
  
  }
  
  
  //MARK: sharedDelegate
  
   func sharedDelegate() -&gt; AppDelegate
  
  {
      return UIApplication.shared.delegate as! AppDelegate
  }
  
  
   }
  </code></pre>