add SimpleStopWatch to ActiveWorkoutSession
This commit is contained in:
@@ -17,10 +17,13 @@ struct ExerciseEditor: View {
|
||||
|
||||
@State private var name: String = ""
|
||||
@State private var description: String = ""
|
||||
@State private var metric: ExerciseMetric = .none
|
||||
@State private var metric = ExerciseMetric.none
|
||||
@State private var unit = ExerciseUnit(name: "", symbol: "")
|
||||
|
||||
@State private var isPartOfProgression: Bool = false
|
||||
|
||||
let exerciseUnits = ExerciseUnit.getUnits
|
||||
|
||||
var body: some View {
|
||||
NavigationStack {
|
||||
VStack {
|
||||
@@ -45,6 +48,12 @@ struct ExerciseEditor: View {
|
||||
}
|
||||
}
|
||||
.pickerStyle(SegmentedPickerStyle())
|
||||
Picker("Select Exercise Unit", selection: $unit) {
|
||||
ForEach(exerciseUnits, id: \.self) { unit in
|
||||
Text("\(unit.name) (\(unit.symbol))").tag(unit as ExerciseUnit?)
|
||||
}
|
||||
}
|
||||
.pickerStyle(NavigationLinkPickerStyle())
|
||||
}
|
||||
Section(footer: Text("Feature coming soon.")) {
|
||||
Toggle(isOn: $isPartOfProgression) {
|
||||
|
||||
Reference in New Issue
Block a user