Detect when a UIViewController gets dismissed by swiping down before the dismissal animation ends
With reference to this answer, the “endAppearanceTransition()” is called on the completion of the dismissal animation, about a second after the view disappears. I need to perform a specific task right after the UIViewController gets dismissed.