mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 22:30:32 +05:30
16 lines
406 B
Swift
16 lines
406 B
Swift
import AVKit
|
|
import Defaults
|
|
import SwiftUI
|
|
|
|
struct AppleAVPlayerView: UIViewRepresentable {
|
|
@EnvironmentObject<PlayerModel> private var player
|
|
|
|
func makeUIView(context _: Context) -> some UIView {
|
|
let playerLayerView = PlayerLayerView(frame: .zero)
|
|
playerLayerView.player = player
|
|
return playerLayerView
|
|
}
|
|
|
|
func updateUIView(_: UIViewType, context _: Context) {}
|
|
}
|