-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOtherOrderGrid.swift
80 lines (48 loc) · 2.41 KB
/
OtherOrderGrid.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
71
72
73
74
75
76
77
78
79
80
import SwiftUI
struct OtherOrderGrid: View {
var body: some View {
ScrollView(.vertical, showsIndicators: false){
VStack {
HStack(){
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.9882352941, green: 0.7884188357, blue: 0.0004788459118, alpha: 1)), item: Items.jacketCoat)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0, green: 0.9882352941, blue: 0.8607519624, alpha: 1)), item: Items.leather)
Spacer()
}
.padding(.bottom, 20)
.padding(.top, 1)
HStack(){
Spacer()
ItemCard(color: Color(#colorLiteral(red: 1, green: 0.8237730801, blue: 0.6205014913, alpha: 1)), item: Items.blanket)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.721568644, green: 0.8862745166, blue: 0.5921568871, alpha: 1)), item: Items.comforter)
Spacer()
}
.padding(.bottom, 20)
.padding(.top, 1)
HStack(){
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.9098039269, green: 0.4784313738, blue: 0.6431372762, alpha: 1)), item: Items.accessories)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.568868852, green: 0.7699276011, blue: 1, alpha: 1)), item: Items.shoes)
Spacer()
}
.padding(.bottom, 20)
.padding(.top, 1)
Spacer().frame(height: 75)
}
}
}
}
struct OtherOrderGrid_Previews: PreviewProvider {
@State static var jacketCoatQuantity = 0
@State static var leatherQuantity = 0
@State static var blanketQuantity = 0
@State static var accessoriesQuantity = 0
@State static var comforterQuantity = 0
@State static var shoesQuantity = 0
static var previews: some View {
OtherOrderGrid()
}
}