diff --git a/Sources/StoryFlow/Flow/Helpers/Transition.swift b/Sources/StoryFlow/Flow/Helpers/Transition.swift index baed251..b0a9460 100644 --- a/Sources/StoryFlow/Flow/Helpers/Transition.swift +++ b/Sources/StoryFlow/Flow/Helpers/Transition.swift @@ -76,7 +76,7 @@ private extension UIViewController { func afterDismissingCompleted(_ transition: @escaping () -> ()) { if presentedViewController?.isBeingDismissed == true { - dismiss(animated: true, completion: transition) + presentedViewController?.dismiss(animated: true, completion: transition) } else { transition() }