In iOS 13 and above the default modal presentation style of a view controller allows you to dismiss it interactively. The thing is I need to know when a view controller is dismissed, to perform some actions.
Unfortunately, I cannot use viewWllDisappear
and viewDidDisappear
because there are other screens that are presented from that view controller, so those will be called as well.
Is there any way to handle an interactive dismiss of a View Controller?
EDIT; What I mean, is if there’s a way to handle this kind of dismiss.