온보딩 페이지 제거
This commit is contained in:
		| @@ -10,17 +10,12 @@ import SwiftUI | ||||
| struct MainView: View { | ||||
|      | ||||
|     @AppStorage("token") private var token: String = UserDefaults.string(forKey: UserDefaultsKey.token) | ||||
|     @AppStorage("isViewedOnboardingView") private var isViewedOnboardingView: Bool = UserDefaults.bool(forKey: .isViewedOnboardingView) | ||||
|      | ||||
|     var body: some View { | ||||
|         if isViewedOnboardingView { | ||||
|             if token.count > 0 { | ||||
|                 HomeView() | ||||
|             } else { | ||||
|                 LoginView() | ||||
|             } | ||||
|         if token.count > 0 { | ||||
|             HomeView() | ||||
|         } else { | ||||
|             OnboardingView() | ||||
|             LoginView() | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung