Fixed add/edit Attempts View
This commit is contained in:
@@ -373,35 +373,19 @@ struct AddAttemptView: View {
|
|||||||
Section("Additional Details") {
|
Section("Additional Details") {
|
||||||
TextField("Highest Hold (Optional)", text: $highestHold)
|
TextField("Highest Hold (Optional)", text: $highestHold)
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 8) {
|
TextField("Notes (Optional)", text: $notes, axis: .vertical)
|
||||||
Text("Notes (Optional)")
|
.lineLimit(3...6)
|
||||||
.font(.headline)
|
|
||||||
|
|
||||||
TextEditor(text: $notes)
|
LabeledContent("Duration (seconds)") {
|
||||||
.frame(minHeight: 80)
|
|
||||||
.padding(8)
|
|
||||||
.background(
|
|
||||||
RoundedRectangle(cornerRadius: 8)
|
|
||||||
.fill(.quaternary)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
HStack {
|
|
||||||
Text("Duration (seconds)")
|
|
||||||
Spacer()
|
|
||||||
TextField("0", value: $duration, format: .number)
|
TextField("0", value: $duration, format: .number)
|
||||||
.keyboardType(.numberPad)
|
.keyboardType(.numberPad)
|
||||||
.textFieldStyle(.roundedBorder)
|
.multilineTextAlignment(.trailing)
|
||||||
.frame(width: 80)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
LabeledContent("Rest Time (seconds)") {
|
||||||
Text("Rest Time (seconds)")
|
|
||||||
Spacer()
|
|
||||||
TextField("0", value: $restTime, format: .number)
|
TextField("0", value: $restTime, format: .number)
|
||||||
.keyboardType(.numberPad)
|
.keyboardType(.numberPad)
|
||||||
.textFieldStyle(.roundedBorder)
|
.multilineTextAlignment(.trailing)
|
||||||
.frame(width: 80)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1147,35 +1131,19 @@ struct EditAttemptView: View {
|
|||||||
Section("Additional Details") {
|
Section("Additional Details") {
|
||||||
TextField("Highest Hold (Optional)", text: $highestHold)
|
TextField("Highest Hold (Optional)", text: $highestHold)
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 8) {
|
TextField("Notes (Optional)", text: $notes, axis: .vertical)
|
||||||
Text("Notes (Optional)")
|
.lineLimit(3...6)
|
||||||
.font(.headline)
|
|
||||||
|
|
||||||
TextEditor(text: $notes)
|
LabeledContent("Duration (seconds)") {
|
||||||
.frame(minHeight: 80)
|
|
||||||
.padding(8)
|
|
||||||
.background(
|
|
||||||
RoundedRectangle(cornerRadius: 8)
|
|
||||||
.fill(.quaternary)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
HStack {
|
|
||||||
Text("Duration (seconds)")
|
|
||||||
Spacer()
|
|
||||||
TextField("0", value: $duration, format: .number)
|
TextField("0", value: $duration, format: .number)
|
||||||
.keyboardType(.numberPad)
|
.keyboardType(.numberPad)
|
||||||
.textFieldStyle(.roundedBorder)
|
.multilineTextAlignment(.trailing)
|
||||||
.frame(width: 80)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
LabeledContent("Rest Time (seconds)") {
|
||||||
Text("Rest Time (seconds)")
|
|
||||||
Spacer()
|
|
||||||
TextField("0", value: $restTime, format: .number)
|
TextField("0", value: $restTime, format: .number)
|
||||||
.keyboardType(.numberPad)
|
.keyboardType(.numberPad)
|
||||||
.textFieldStyle(.roundedBorder)
|
.multilineTextAlignment(.trailing)
|
||||||
.frame(width: 80)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user