mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 05:40:32 +05:30
17 lines
395 B
Swift
17 lines
395 B
Swift
import Defaults
|
|
import SwiftUI
|
|
|
|
struct AppleAVPlayerView: NSViewRepresentable {
|
|
@EnvironmentObject<PlayerModel> private var player
|
|
|
|
func makeNSView(context _: Context) -> some NSView {
|
|
let playerLayerView = PlayerLayerView(frame: .zero)
|
|
|
|
playerLayerView.player = player
|
|
|
|
return playerLayerView
|
|
}
|
|
|
|
func updateNSView(_: NSViewType, context _: Context) {}
|
|
}
|