Pick rest time on a 1-second wheel
Replaces the 5-second Steppers in Settings and the routine editor's custom-rest row with a shared SecondsWheelRow: the row shows the value and tapping it expands an inline wheel (10-180s, 1s steps) beneath.
This commit is contained in:
@@ -132,13 +132,7 @@ struct RoutineAddEditView: View {
|
||||
|
||||
Toggle("Custom Rest Time", isOn: $restOverrideEnabled)
|
||||
if restOverrideEnabled {
|
||||
Stepper(value: $restSecondsValue, in: 10...180, step: 5) {
|
||||
HStack {
|
||||
Text("Rest Time")
|
||||
Spacer()
|
||||
Text("\(restSecondsValue)s").foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
SecondsWheelRow(title: "Rest Time", range: 10...180, seconds: $restSecondsValue)
|
||||
}
|
||||
} header: {
|
||||
Text("Rest & Pacing")
|
||||
|
||||
Reference in New Issue
Block a user