AcaMate_iOS/AcaMate/1. View/11. Intro & Login/IntroView.swift
2025-03-24 09:03:27 +09:00

51 lines
1.3 KiB
Swift

//
// IntroView.swift
// AcaMate
//
// Created by Sean Kim on 12/1/24.
//
import SwiftUI
import Combine
struct IntroView: View {
// @EnvironmentObject var appVM: AppViewModel
@StateObject private var introVM : IntroViewModel
@State var cancellables: Set<AnyCancellable> = []
init(appVM: AppViewModel){
_introVM = StateObject(wrappedValue: IntroViewModel(appVM: appVM))
// self.introVM = IntroViewModel(appVM: appVM)
}
var body: some View {
VStack(spacing: 0) {
Spacer()
.frame(height: 100)
Image(.Logo.appIcon)
.resizable()
.frame(width: 200, height: 200)
Spacer()
HStack(spacing: 4) {
Image(.Logo.teamIcon)
.resizable()
.frame(width: 24, height: 24)
Text("STEIN")
.font(.nps(font: .bold, size: 16))
.foregroundStyle(Color(.Text.detail))
}
.padding(.bottom,12)
Text("Copyright © Team.Stein")
.font(.nps(font: .regular, size: 14))
.foregroundStyle(Color(.Text.detail))
.padding(.bottom,50)
}
.onAppear {
printLog("IntroView_onAppear")
introVM.appStart()
}
}
}