Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Onboarding] 최초 실행 유무 로직 수정 #177

Merged
merged 1 commit into from
Feb 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ final class OnboardingViewController: BaseViewController {

@objc
private func moveToLoginViewController() {
UserManager.shared.set(isLaunchedBefore: true) // 로그인 뷰로 넘어가면서 최초실행 유무 설정
navigationController?.setViewControllers([LoginViewController()], animated: true)
}
}
Expand Down
1 change: 0 additions & 1 deletion PLUB/Sources/Views/Splash/SplashViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ final class SplashViewModel: SplashViewModelType {
guard let isLaunchedBefore = UserManager.shared.isLaunchedBefore,
isLaunchedBefore == true
else {
UserManager.shared.set(isLaunchedBefore: true) // 최초 실행 로직을 탔으므로 true로 설정
moveVCRelay.accept(OnboardingViewController()) // 온보딩으로 띄움
return
}
Expand Down