// // RateWorkoutView.swift // Werkout_ios // // Created by Trey Tartt on 6/18/24. // import SwiftUI struct RateWorkoutView: View { @Binding var difficulty: Float var body: some View { VStack { Divider() .overlay(WerkoutTheme.divider) HStack { Text("No Rate") .font(WerkoutTheme.caption) .foregroundStyle(WerkoutTheme.textMuted) Text("Easy") .font(WerkoutTheme.caption) .foregroundStyle(WerkoutTheme.success) Spacer() Text("Death") .font(WerkoutTheme.caption) .foregroundStyle(WerkoutTheme.danger) } ZStack { Slider(value: $difficulty, in: 0...5, step: 1) .tint(WerkoutTheme.accent) } } } } //#Preview { // RateWorkoutView() //}