-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaseInfo1RevView.swift
More file actions
executable file
·88 lines (77 loc) · 2.95 KB
/
Copy pathCaseInfo1RevView.swift
File metadata and controls
executable file
·88 lines (77 loc) · 2.95 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
//
// CaseInfoView.swift
// LLimg_sw01
//
// Created by EFI-Admin on 12/3/23.
//
import SwiftUI
import SwiftUI
struct CaseInfo1RevView: View {
@State private var caseName: String = ""
@State private var evidenceName: String = ""
@State private var agentName: String = ""
@State private var caseID: String = ""
@State private var caseNotes: String = ""
private let maxWordCount = 200
var body: some View {
// HeaderView()
HStack {
VStack {
Text("Case Information")
.padding()
HStack {
Text("Case:")
.font(.headline)
.padding(.leading, 3)
TextField("Enter case name", text: $caseName)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding()
}
HStack {
Text("Evidence:")
.font(.headline)
.padding(.leading, 3)
TextField("Enter Evidence name", text: $evidenceName)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding()
}
HStack {
Text("Agent:")
.font(.headline)
.padding(.leading, 3)
TextField("Enter Agent name", text: $agentName)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding()
}
HStack {
Text("Case ID:")
.font(.headline)
.padding(.leading, 3)
TextField("Enter ID for case", text: $caseID)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding()
}
HStack {
Text("notes:")
.font(.headline)
.padding(.leading, 3)
TextEditor(text: $caseNotes)
.frame(minHeight: 40, maxHeight: 80) // Height adjusts with content
.frame(width: 270) // Fixed width
// .border(Color.white, width: 1) // Border to visualize the text editor
.padding(3) // Padding inside the border
.overlay(
RoundedRectangle(cornerRadius: 10)
.stroke(Color.white, lineWidth: 3) // Border with rounded corners
)
.clipShape(RoundedRectangle(cornerRadius: 7))
}
}
.frame(width: 370, height: 500)
.padding()
}
}
}
#Preview {
CaseInfoView()
}