57 lines
1.3 KiB
Swift
57 lines
1.3 KiB
Swift
//
|
|
// SplashScreenView.swift
|
|
// FluxRead
|
|
//
|
|
// Created by RSA on 29/11/2025.
|
|
//
|
|
import Foundation
|
|
import SwiftUI
|
|
import Combine
|
|
|
|
struct SplashScreenView: View {
|
|
|
|
@ObservedObject var viewModel: SplashScreenViewModel
|
|
|
|
var body: some View {
|
|
ZStack {
|
|
|
|
|
|
Color.appBackground.ignoresSafeArea()
|
|
|
|
VStack(spacing: 0) {
|
|
|
|
HStack {
|
|
Image("splashLogo")
|
|
.frame(width: 150, height: 180)
|
|
.padding(.leading, 70)
|
|
.padding(.top, 90)
|
|
Spacer()
|
|
}
|
|
|
|
Spacer()
|
|
|
|
Image("splashImage")
|
|
.padding(.top, 20)
|
|
Spacer()
|
|
|
|
Image("corporateLogos")
|
|
.padding(.bottom, 35)
|
|
|
|
}
|
|
.ignoresSafeArea()
|
|
|
|
}
|
|
.ignoresSafeArea()
|
|
.task {
|
|
do {
|
|
try await Task.sleep(for: .seconds(2))
|
|
} catch {
|
|
return
|
|
}
|
|
|
|
guard !Task.isCancelled else { return }
|
|
viewModel.appStateManager.navigateTo(state: .login)
|
|
}
|
|
}
|
|
}
|