-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiaryTotal.swift
More file actions
112 lines (59 loc) · 1.68 KB
/
DiaryTotal.swift
File metadata and controls
112 lines (59 loc) · 1.68 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//
// DiaryTotal.swift
// Happy Tree
//
// Created by Thach Quynh Anh on 11/13/22.
//
import Foundation
import SwiftUI
struct DiaryTotal: View {
func buttonPressed(){
print("button")
}
@EnvironmentObject var listViewModel: ListViewModel
var body: some View {
ZStack{
Color.purple
.opacity(0.2)
.ignoresSafeArea()
VStack {
HStack(spacing: 70){
Image("diary")
.resizable()
.frame(width:120, height: 120)
Text("Welcome to your diary")
.font(.system(size: 28))
}
.padding(.top, 30)
List{
ForEach(listViewModel.items){ item in
ListRowView(item: item)
}
}
.scrollContentBackground(.hidden)
// NavigationLink("Let's see your soul tree", destination: Profile().navigationBarBackButtonHidden(true))
//
//
// .foregroundColor(.white)
//
// .font(.system(size: 15, weight:.heavy))
//
// .frame(width:250, height:60)
//
// .background(Color.purple)
//
// .cornerRadius(25)
//
//
}
}
}
}
struct DiaryTotal_Previews: PreviewProvider {
static var previews: some View {
NavigationView{
DiaryTotal()
}
.environmentObject(ListViewModel())
}
}