스플래시 페이지 추가

This commit is contained in:
Yu Sung
2023-08-09 16:52:36 +09:00
parent 058c907609
commit 84d3dd61ca
27 changed files with 932 additions and 6 deletions

View File

@@ -8,14 +8,21 @@
import SwiftUI
struct ContentView: View {
@StateObject private var appState = AppState.shared
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
ZStack {
Color.black.ignoresSafeArea()
switch appState.appStep {
case .splash:
SplashView()
default:
EmptyView()
.frame(width: 0, height: 0, alignment: .topLeading)
}
}
.padding()
}
}