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