-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSummaryView1.swift
54 lines (46 loc) · 1.76 KB
/
SummaryView1.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
//
// SummaryView1.swift
// Mindfulness
//
// Created by Kushal P on 1/18/21.
//
import SwiftUI
struct SummaryView1: View {
@Binding var issue: IssueData.Data
@State private var isPresented = false
@State private var seasonData: SeasonModel.SeasonData = SeasonModel.SeasonData(category: SeasonModel.SeasonData.Category.spring)
@State private var newAttendee = ""
@Environment(\.presentationMode) var presentationMode
var body: some View {
NavigationView {
List{
Section(header: Text("Your Order Summary")){
TextField("Season Selected", text: $issue.title)
TextField("Issues Selected", text: $issue.imageName)
TextField("Recording Selected", text: $seasonData.name)
}
Section(header: Text("COMMENTS")) {
Text("Category")
}
HStack {
TextField("Additional Comments", text: $newAttendee)
Button(action: {
}) {
Image(systemName: "plus.circle.fill")
.accessibilityLabel(Text("Add Additional Comments"))
}
.disabled(newAttendee.isEmpty)
}
}
.listStyle(InsetGroupedListStyle())
.navigationBarItems(trailing: Button("Cancel") {
presentationMode.wrappedValue.dismiss()
})
}
}
}
struct SummaryView1_Previews: PreviewProvider {
static var previews: some View {
SummaryView1(issue: .constant(IssueData.data[1].data))
}
}