-
Notifications
You must be signed in to change notification settings - Fork 0
/
WelcomeView.swift
70 lines (61 loc) · 1.83 KB
/
WelcomeView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// WelcomeView.swift
// Colli-Flower
//
// Created by 최명근 on 2023/03/28.
//
import SwiftUI
struct WelcomeView: View {
@State private var c: String = "ㅅ"
@State private var b: String = "ㅂ"
@State private var l: String = "ㅇ"
@State private var next: Bool = false
@State private var nextActive: Bool = false
var body: some View {
NavigationView {
VStack {
HStack {
Text("우리의")
.font(.system(size: 64))
Spacer()
}
HStack {
Text(c)
.foregroundColor(Color("ColorC"))
Text(b)
.foregroundColor(Color("ColorB"))
Text(l)
.foregroundColor(Color("ColorL"))
}
.font(.system(size: 186).bold())
.onTapGesture {
withAnimation {
if !next {
c = "C "
b = " B "
l = " L"
next = true
} else {
nextActive = true
}
}
}
NavigationLink("", isActive: $nextActive) {
ElcapView()
}
HStack {
Spacer()
Text("이야기")
.font(.system(size: 64))
}
}
.frame(width: 512)
}
.navigationViewStyle(.stack)
}
}
struct WelcomeView_Previews: PreviewProvider {
static var previews: some View {
WelcomeView()
}
}