This commit is contained in:
Trey t
2023-07-13 22:39:44 -05:00
parent 59dc0bbc4c
commit 93b8d674b4
13 changed files with 205 additions and 103 deletions

View File

@@ -9,14 +9,14 @@ import SwiftUI
import AVKit
struct ExerciseListView: View {
@AppStorage("showNSFWVideos") private var showNSFWVideos = false
@AppStorage("thotStyle") private var thotStyle: ThotStyle = .never
@ObservedObject var bridgeModule = BridgeModule.shared
var workout: Workout
@State var avPlayer = AVPlayer(url: URL(string: "https://dev.werkout.fitness/media/exercise_videos/2_Dumbbell_Lateral_Lunges.mp4")!)
@State var videoExercise: ExerciseExercise? {
didSet {
if let videoURL = self.videoExercise?.videoURL(nsfw: showNSFWVideos) {
if let videoURL = self.videoExercise?.videoURL(thotStyle: thotStyle) {
avPlayer = AVPlayer(url: videoURL)
avPlayer.play()
}