fix: re-entry crash issue
This commit is contained in:
parent
a79f5140b5
commit
5bc8adfd43
|
@ -14,7 +14,12 @@ final class WelcomeViewController: UIViewController, NeedsDependency {
|
||||||
weak var coordinator: SceneCoordinator! { willSet { precondition(!isViewLoaded) } }
|
weak var coordinator: SceneCoordinator! { willSet { precondition(!isViewLoaded) } }
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
let authenticationViewController = AuthenticationViewController()
|
lazy var authenticationViewController: AuthenticationViewController = {
|
||||||
|
let authenticationViewController = AuthenticationViewController()
|
||||||
|
authenticationViewController.context = context
|
||||||
|
authenticationViewController.coordinator = coordinator
|
||||||
|
return authenticationViewController
|
||||||
|
}()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
let logoImageView: UIImageView = {
|
let logoImageView: UIImageView = {
|
||||||
|
@ -105,8 +110,6 @@ extension WelcomeViewController {
|
||||||
os_log(.info, log: .debug, "%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function)
|
os_log(.info, log: .debug, "%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function)
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
authenticationViewController.context = context
|
|
||||||
authenticationViewController.coordinator = coordinator
|
|
||||||
authenticationViewController.viewModel = AuthenticationViewModel(context: context, coordinator: coordinator, isAuthenticationExist: true)
|
authenticationViewController.viewModel = AuthenticationViewModel(context: context, coordinator: coordinator, isAuthenticationExist: true)
|
||||||
authenticationViewController.viewModel.domain.value = "pawoo.net"
|
authenticationViewController.viewModel.domain.value = "pawoo.net"
|
||||||
let _ = authenticationViewController.view // trigger view load
|
let _ = authenticationViewController.view // trigger view load
|
||||||
|
|
Loading…
Reference in New Issue