// // SecondsStepperRow.swift // Workouts // // Copyright 2026 Rouslan Zenetl. All Rights Reserved. // import SwiftUI /// A Form row for adjusting a seconds value with a stepper in 1-second steps — /// fine-grained (the old 5-second step overshot), and holding a stepper button /// auto-repeats with acceleration, so the 10–180s range still traverses quickly. /// Used for the rest-time settings in Settings and the routine editor. struct SecondsStepperRow: View { let title: String let range: ClosedRange @Binding var seconds: Int var body: some View { Stepper(value: $seconds, in: range, step: 1) { HStack { Text(title) Spacer() Text("\(seconds)s") .monospacedDigit() .foregroundStyle(.secondary) } } } }