From 3f8a5a549798ff720f6242bf7003377349f9f91b Mon Sep 17 00:00:00 2001 From: Zoe Date: Sat, 16 Nov 2024 03:46:12 +0900 Subject: [PATCH] =?UTF-8?q?[Fix/#104]=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EB=B7=B0=EB=AA=A8=EB=8D=B8=20=EC=A3=BC=EC=9E=85=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20=EC=BD=94=EB=94=94=EB=84=A4?= =?UTF-8?q?=EC=9D=B4=ED=84=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../App/Sources/Common/Custom/SplashView.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/HMH_Tuist_iOS/Projects/App/Sources/Common/Custom/SplashView.swift b/HMH_Tuist_iOS/Projects/App/Sources/Common/Custom/SplashView.swift index 8acf9880..37afaaf4 100644 --- a/HMH_Tuist_iOS/Projects/App/Sources/Common/Custom/SplashView.swift +++ b/HMH_Tuist_iOS/Projects/App/Sources/Common/Custom/SplashView.swift @@ -7,13 +7,13 @@ import SwiftUI -import Lottie - -import LoginFeature import DSKit +import Core + +import Lottie struct SplashView: View { - @ObservedObject var viewModel: LoginViewModel + @ObservedObject var coordinator: AppCoordinator var body: some View { ZStack { @@ -29,9 +29,9 @@ struct SplashView: View { .frame(maxWidth: .infinity, maxHeight: .infinity) .background(DSKitAsset.blackground.swiftUIColor, ignoresSafeAreaEdges: .all) .onAppear { - DispatchQueue.main.asyncAfter(deadline: .now() + 3.5, execute: { - viewModel.handleSplashScreen() - }) + DispatchQueue.main.asyncAfter(deadline: .now() + 3.5) { + coordinator.appState = .login // Splash에서 홈뷰 통신하면서 상태 판단 필요 + } } } }