refactor(watch): remove .listRowBackground(.clear) modifiers
This commit is contained in:
Generated
+10266
-10266
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,6 @@ struct WorkoutListView: View {
|
|||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.padding(.vertical, 20)
|
.padding(.vertical, 20)
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Section("Saved Workouts") {
|
Section("Saved Workouts") {
|
||||||
@@ -65,7 +64,6 @@ struct WorkoutListView: View {
|
|||||||
.font(.caption)
|
.font(.caption)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
.onDelete { indexSet in
|
.onDelete { indexSet in
|
||||||
workoutManager.deleteSavedWorkouts(at: indexSet)
|
workoutManager.deleteSavedWorkouts(at: indexSet)
|
||||||
@@ -89,7 +87,6 @@ struct WorkoutListView: View {
|
|||||||
.foregroundColor(.green)
|
.foregroundColor(.green)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
.onDelete { indexSet in
|
.onDelete { indexSet in
|
||||||
workoutManager.deleteCompletedWorkouts(at: indexSet)
|
workoutManager.deleteCompletedWorkouts(at: indexSet)
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ struct WorkoutDetailView: View {
|
|||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,7 +58,6 @@ struct WorkoutDetailView: View {
|
|||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ struct WorkoutSummaryView: View {
|
|||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Section("Stats") {
|
Section("Stats") {
|
||||||
@@ -29,7 +28,6 @@ struct WorkoutSummaryView: View {
|
|||||||
Text(formatTime(summary.duration))
|
Text(formatTime(summary.duration))
|
||||||
.monospacedDigit()
|
.monospacedDigit()
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Distance")
|
Text("Distance")
|
||||||
@@ -38,7 +36,6 @@ struct WorkoutSummaryView: View {
|
|||||||
Text("\(summary.totalDistance)m")
|
Text("\(summary.totalDistance)m")
|
||||||
.monospacedDigit()
|
.monospacedDigit()
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Calories")
|
Text("Calories")
|
||||||
@@ -47,7 +44,6 @@ struct WorkoutSummaryView: View {
|
|||||||
Text("\(summary.calories)kcal")
|
Text("\(summary.calories)kcal")
|
||||||
.monospacedDigit()
|
.monospacedDigit()
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Laps")
|
Text("Laps")
|
||||||
@@ -56,7 +52,6 @@ struct WorkoutSummaryView: View {
|
|||||||
Text("\(summary.laps.count)")
|
Text("\(summary.laps.count)")
|
||||||
.monospacedDigit()
|
.monospacedDigit()
|
||||||
}
|
}
|
||||||
.listRowBackground(.clear)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
|||||||
Reference in New Issue
Block a user