is it possible to handle and trigger some func in first controller if second controller is dimissed?
this my code to open second controller from first controller
self.present(UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "LockScreen") as UIViewController, animated: true, completion: nil)
and this my code to dismiss controller from second controller to first controller
self.navigationController?.popViewController(animated: true)
self.dismiss(animated: true, completion: nil)