Dismissing views now animated by default
This commit is contained in:
parent
78d69cb673
commit
cc9f142800
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ struct LoginDialog: View {
|
|||
}
|
||||
|
||||
private func closeDialogAndDispatchLoginResult(_ authenticationSuccess: Bool) {
|
||||
SceneDelegate.dismissCurrentView()
|
||||
SceneDelegate.dismissCurrentView(animated: false)
|
||||
|
||||
self.loginResult(authenticationSuccess)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue