rate workout and order of buttons

This commit is contained in:
Trey t
2025-04-23 11:48:17 -05:00
parent ca25d61019
commit 8cafb39a65
2 changed files with 6 additions and 16 deletions

View File

@@ -25,17 +25,7 @@ struct RateWorkoutView: View {
}
ZStack {
LinearGradient(
gradient: Gradient(colors: [.black, .green, .red]),
startPoint: .leading,
endPoint: .trailing
)
.mask(Slider(value: $difficulty, in: 0...5, step: 1))
// Dummy replicated slider, to allow sliding
Slider(value: $difficulty, in: 0...5, step: 1)
.opacity(0.05) // Opacity is the trick here.
.accentColor(.clear)
}
}
}