Skip to content

Commit

Permalink
[Fix/#104] 불필요한 뷰모델 주입 제거 및 코디네이터
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Nov 15, 2024
1 parent 082e5b9 commit 3f8a5a5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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에서 홈뷰 통신하면서 상태 판단 필요
}
}
}
}
Expand Down

0 comments on commit 3f8a5a5

Please sign in to comment.