I have a View(ViewController1) that overlays a modal ViewController2. ViewController2 has three options
- Delete all sessions
- Select a place
- Cancel
It's fairly easy to get to launch the modal viewController as this in ViewController1
@objc func presentMenu() {
let overlayController = ViewController2()
overlayController.transitioningDelegate = self
overlayController.modalPresentationStyle = .fullScreen
present(overlayController, animated: true)
}
This basically shows ViewController2. However viewController1 code has gone past this and where do I find out that this ViewController2 has been dismissed?