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)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)