Skip to content

Commit

Permalink
Fix for dismissing while dismissing
Browse files Browse the repository at this point in the history
  • Loading branch information
Domas Nutautas committed May 24, 2020
1 parent 6bdbc2e commit db9c070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StoryFlow/Flow/Helpers/Transition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit db9c070

Please sign in to comment.