19 lines
634 B
Swift
19 lines
634 B
Swift
import AVKit
|
|
import SwiftUI
|
|
|
|
struct StudyVideoPlayerView: View {
|
|
@ObservedObject var coordinator: PlayerCoordinator
|
|
|
|
var body: some View {
|
|
VideoPlayer(player: coordinator.player)
|
|
.frame(maxWidth: .infinity)
|
|
.frame(height: 224)
|
|
.clipShape(RoundedRectangle(cornerRadius: HermesTheme.cornerRadius, style: .continuous))
|
|
.overlay(
|
|
RoundedRectangle(cornerRadius: HermesTheme.cornerRadius, style: .continuous)
|
|
.stroke(HermesTheme.accent.opacity(0.12), lineWidth: 1)
|
|
)
|
|
.background(HermesTheme.surfaceElevated)
|
|
}
|
|
}
|