This commit is contained in:
Trey t
2023-07-17 23:33:18 -05:00
parent af538362e8
commit 2753e31f24
8 changed files with 85 additions and 27 deletions

View File

@@ -9,7 +9,7 @@ import SwiftUI
import AVKit
struct ExerciseListView: View {
@AppStorage("thotStyle") private var thotStyle: ThotStyle = .never
@AppStorage(Constants.phoneThotStyle) private var phoneThotStyle: ThotStyle = .never
@ObservedObject var bridgeModule = BridgeModule.shared
@State var avPlayer = AVPlayer(url: URL(string: "https://dev.werkout.fitness/media/exercise_videos/2_Dumbbell_Lateral_Lunges.mp4")!)
var workout: Workout
@@ -17,7 +17,7 @@ struct ExerciseListView: View {
@State var videoExercise: Exercise? {
didSet {
if let videoURL = VideoURLCreator.videoURL(
thotStyle: thotStyle,
thotStyle: phoneThotStyle,
defaultVideoURLStr: self.videoExercise?.videoURL,
exerciseName: self.videoExercise?.name,
workout: bridgeModule.currentExerciseInfo.workout) {