From 76150070f84475177ab7c44cb9461c2577406fec Mon Sep 17 00:00:00 2001 From: rzen Date: Sat, 11 Jul 2026 12:50:21 -0400 Subject: [PATCH] Show the selected routine as a symbol-and-color preview in the form The Routine row now renders the selection like the picker list's rows (tinted symbol + name); with nothing selected it reads "Please select" in secondary style. --- Workouts/Views/Today/ScheduleAddEditView.swift | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Workouts/Views/Today/ScheduleAddEditView.swift b/Workouts/Views/Today/ScheduleAddEditView.swift index 2be4928..bb64f13 100644 --- a/Workouts/Views/Today/ScheduleAddEditView.swift +++ b/Workouts/Views/Today/ScheduleAddEditView.swift @@ -180,10 +180,19 @@ struct ScheduleAddEditView: View { RoutinePickerList(routines: routines, currentID: selectedRoutine?.id, selectedID: $routineID) } label: { - HStack { - Text("Routine") - Spacer() - Text(selectedRoutine?.name ?? "Choose…") + // The row is the selection's preview — the routine's own symbol and + // color, matching the picker list's rows. + if let routine = selectedRoutine { + HStack(spacing: 12) { + Image(systemName: routine.systemImage) + .font(.title3) + .foregroundStyle(Color.color(from: routine.color)) + .frame(width: 32) + Text(routine.name) + .foregroundStyle(.primary) + } + } else { + Text("Please select") .foregroundStyle(.secondary) } }