title: Unable to remove child viewcontroller after Navigation
body: <p>I have added a child viewcontroller to VC1. On tapping a button in child viewcontroller , I am pushing to another viewcontroller , VC2. On tapping back button in VC2 , I need to remove the child viewcontroller but I m unable to do it.Can u pls help me ? </p>
  
  <pre><code>override func viewDidDisappear(_ animated: Bool) {
  
          let controller = storyboard!.instantiateViewController(withIdentifier: "PopupViewController") as! PopupViewController
          controller.willMove(toParentViewController: nil)
          controller.view.removeFromSuperview()
          controller.removeFromParentViewController()
   }
  </code></pre>