Skip to content

Commit

Permalink
fix: reseting scenarios doesn't dismiss modal child view controller
Browse files Browse the repository at this point in the history
  • Loading branch information
antranapp committed Feb 11, 2022
1 parent a0c4808 commit 542936b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Scenarios/BaseScenariosManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ open class BaseScenariosManager {
}
appController.setScenario(activeScenarioId)
} else {
if (appController.rootViewController.presentedViewController) != nil {
appController.rootViewController.dismiss(animated: false, completion: nil)
}
appController.setScenarioSelector(makeScenarioSelector())
}
}
Expand Down

0 comments on commit 542936b

Please sign in to comment.