This commit is contained in:
Trey t
2023-06-27 23:47:55 -05:00
parent 2e7b2cf145
commit 1a06a1dc95
8 changed files with 105 additions and 43 deletions

View File

@@ -61,7 +61,9 @@ struct AddExerciseView: View {
filteredExercises = exercises
}
.sheet(item: $videoExercise) { exercise in
VideoPlayerView(currentExercise: exercise)
if let url = URL(string: BaseURLs.dev.rawValue + exercise.videoURL) {
VideoPlayerView(url: url)
}
}
.sheet(item: $createWorkoutItemPickerViewModel) { item in
CreateWorkoutItemPickerView(viewModel: item, completed: { selectedids in
@@ -223,12 +225,20 @@ struct AddExerciseView: View {
Button(action: {
videoExercise = exercise
}) {
Image(systemName: "video.fill")
ZStack {
Circle()
.fill(.blue)
.frame(width: 44, height: 44)
Image(systemName: "video.fill")
.frame(width: 44, height: 44)
.foregroundColor(.white)
}
}
.frame(width: 22, height: 22)
.frame(width: 44, height: 44)
.background(.clear)
.foregroundColor(.blue)
.cornerRadius(10)
}
}
}