WIP
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user