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)
|
rootNavigationController?.pushViewController(viewController, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
static func dismissCurrentView() {
|
static func dismissCurrentView(animated: Bool = true) {
|
||||||
rootNavigationController?.popViewController(animated: false)
|
rootNavigationController?.popViewController(animated: animated)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ struct LoginDialog: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func closeDialogAndDispatchLoginResult(_ authenticationSuccess: Bool) {
|
private func closeDialogAndDispatchLoginResult(_ authenticationSuccess: Bool) {
|
||||||
SceneDelegate.dismissCurrentView()
|
SceneDelegate.dismissCurrentView(animated: false)
|
||||||
|
|
||||||
self.loginResult(authenticationSuccess)
|
self.loginResult(authenticationSuccess)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue