title: After closeing MMDrawer Controller which view controller life cycle method will called in swift4?
body: <p>i have a tab bar controller, and inside that tab bar i have five view controller. i also have have a right view controller(drawer) which is on homeVC. for rightViewController i use MMDrawerController source: <a href="https://www.youtube.com/watch?time_continue=1468&amp;v=TdKnImb4SWs" rel="nofollow noreferrer">https://www.youtube.com/watch?time_continue=1468&amp;v=TdKnImb4SWs</a>. in the appdelegate . Now when the right view controller is closed, which life cycle of view controller is getting called? because i want to write a function. I have used this code on appdelegate </p>
  
  <pre><code>    let rightViewController = mainStoryboard.instantiateViewController(withIdentifier: "RightViewVC") as! RightViewVC
  
  
  
         UINavigationBar.appearance().titleTextAttributes = [NSAttributedStringKey.foregroundColor : UIColor.white]
  
      let rightSideMenuNav = UINavigationController(rootViewController: rightViewController)
      drawerController = MMDrawerController(center:mainPage,rightDrawerViewController:rightSideMenuNav)
  
     // drawerController!.openDrawerGestureModeMask = MMOpenDrawerGestureMode.panningCenterView
      drawerController!.closeDrawerGestureModeMask = MMCloseDrawerGestureMode.panningCenterView
      drawerController!.closeDrawerGestureModeMask = MMCloseDrawerGestureMode.all
      drawerController!.preferredInterfaceOrientationForPresentation = MMDrawerOpenCenterInteractionMode.full
  
      window?.rootViewController = drawerController
  </code></pre>