add WorkoutIconSelector to select icon and color for a Workout
This commit is contained in:
@@ -18,8 +18,12 @@ struct WorkoutDetail: View {
|
||||
var body: some View {
|
||||
|
||||
Form {
|
||||
Section(header: Text("Workout Name")) {
|
||||
TextField("Workout Name", text: $workout.name)
|
||||
Section {
|
||||
NavigationLink(destination: WorkoutIconSelector(workout: workout)) {
|
||||
Image(systemName: workout.workoutIconSystemName)
|
||||
.foregroundStyle(workout.workoutIconColorName.color)
|
||||
TextField("Workout Name", text: $workout.name)
|
||||
}
|
||||
}
|
||||
Section(header: Text("Exercises")) {
|
||||
List {
|
||||
|
||||
Reference in New Issue
Block a user