Swift viewWillAppear not being called after dismissing view controller
You need to set the correct presentationStyle. If you want that your presentedController will be fullScreen and call it the previous viewWillAppear, then you can use “.fullScreen” let viewController = self.storyboard?.instantiateViewController(withIdentifier: “LoginController”) as! LoginController let navigationController: UINavigationController = UINavigationController(rootViewController: viewController) navigationController.modalPresentationStyle = .fullScreen present(navigationController, animated: true, completion: nil)