Dismissing views now animated by default

This commit is contained in:
dankito 2020-09-07 15:08:26 +02:00
parent 78d69cb673
commit cc9f142800
2 changed files with 3 additions and 3 deletions

View File

@ -54,8 +54,8 @@ extension SceneDelegate {
rootNavigationController?.pushViewController(viewController, animated: true)
}
static func dismissCurrentView() {
rootNavigationController?.popViewController(animated: false)
static func dismissCurrentView(animated: Bool = true) {
rootNavigationController?.popViewController(animated: animated)
}
}

View File

@ -112,7 +112,7 @@ struct LoginDialog: View {
}
private func closeDialogAndDispatchLoginResult(_ authenticationSuccess: Bool) {
SceneDelegate.dismissCurrentView()
SceneDelegate.dismissCurrentView(animated: false)
self.loginResult(authenticationSuccess)
}