Skip to content

Commit

Permalink
[Chore] 시작화면 수정 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcsoyeon committed Sep 10, 2023
1 parent a72beca commit a6af401
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions WAL/WAL/Resource/Support/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
guard let nickname = UserDefaultsHelper.standard.nickname else { return }
guard let accesstoken = UserDefaultsHelper.standard.accesstoken else { return }

// if nickname != Constant.Login.nickname && accesstoken != "" { // 닉네임O, 액세스토큰O -> 자동로그인 -> 메인
// window?.rootViewController = UINavigationController(rootViewController: MainViewController())
// } else if nickname == Constant.Login.nickname && accesstoken != "" { // 닉네임X, 액세스토큰O -> 온보딩
// window?.rootViewController = UINavigationController(rootViewController: OnboardingViewController())
// } else { // 로그인
// window?.rootViewController = LoginViewController(viewModel: LoginViewModel())
// }
window?.rootViewController = WalCreatorViewController()
if nickname != Constant.Login.nickname && accesstoken != "" { // 닉네임O, 액세스토큰O -> 자동로그인 -> 메인
window?.rootViewController = UINavigationController(rootViewController: MainViewController())
} else if nickname == Constant.Login.nickname && accesstoken != "" { // 닉네임X, 액세스토큰O -> 온보딩
window?.rootViewController = UINavigationController(rootViewController: OnboardingViewController())
} else { // 로그인
window?.rootViewController = LoginViewController(viewModel: LoginViewModel())
}
window?.makeKeyAndVisible()
}

Expand Down

0 comments on commit a6af401

Please sign in to comment.