-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPantsOrderGrid.swift
81 lines (48 loc) · 2.42 KB
/
PantsOrderGrid.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
81
import SwiftUI
struct PantsOrderGrid: View {
var body: some View {
ScrollView(.vertical, showsIndicators: false){
VStack {
HStack(){
Spacer()
ItemCard(color: Color(#colorLiteral(red: 1, green: 0.8237730801, blue: 0.6205014913, alpha: 1)), item: Items.dressPants)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.568868852, green: 0.7699276011, blue: 1, alpha: 1)), item: Items.woolSuitPants)
Spacer()
}
.padding(.bottom, 20)
.padding(.top, 1)
HStack(){
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.9882352941, green: 0.7884188357, blue: 0.0004788459118, alpha: 1)), item: Items.skirt)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0, green: 0.9882352941, blue: 0.8607519624, alpha: 1)), item: Items.onePiece)
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.shorts)
Spacer()
ItemCard(color: Color(#colorLiteral(red: 0.9372549057, green: 0.3490196168, blue: 0.1921568662, alpha: 1)), item: Items.jeans)
Spacer()
}
.padding(.bottom, 20)
.padding(.top, 1)
Spacer().frame(height: 75)
}
}
}
}
struct PantsOrderGrid_Previews: PreviewProvider {
@State static var skirtQuantity = 0
@State static var onePieceQuantity = 0
@State static var dressPantsQuantity = 0
@State static var woolSuitQuantity = 0
@State static var shortsQuantity = 0
@State static var jeansQuantity = 0
static var previews: some View {
PantsOrderGrid()
}
}