-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShirtsOrderGrid.swift
76 lines (47 loc) · 2.38 KB
/
ShirtsOrderGrid.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
import SwiftUI
struct ShirtsOrderGrid: 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.dressShirt)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0, green: 0.9882352941, blue: 0.8607519624, alpha: 1)), item: Items.blouse)
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.twoPieceSuit)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.3411764801, green: 0.6235294342, blue: 0.1686274558, alpha: 1)), item: Items.sweater)
Spacer()
}
.padding(.bottom, 20)
.padding(.top, 1)
HStack(){
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.5843137503, green: 0.8235294223, blue: 0.4196078479, alpha: 1)), item: Items.threePieceSuit)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.3647058904, green: 0.06666667014, blue: 0.9686274529, alpha: 1)), item: Items.vest)
Spacer()
}.padding(.bottom, 20)
.padding(.top, 1)
Spacer().frame(height: 75)
}
}
}
}
struct ShirtsOrderGrid_Previews: PreviewProvider {
@State static var dressShirtQuantity = 0
@State static var blouseQuantity = 0
@State static var twopcsuitQuantity = 0
@State static var sweaterQuantity = 0
@State static var threepcsuitQuantity = 0
@State static var vestQuantity = 0
static var previews: some View {
ShirtsOrderGrid()
}
}