1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-06 01:20:31 +05:30
yattee/macOS/Player.swift

18 lines
462 B
Swift
Raw Normal View History

2021-07-19 04:02:46 +05:30
import SwiftUI
struct Player: NSViewControllerRepresentable {
2021-08-23 00:43:33 +05:30
@ObservedObject var playbackState: PlaybackState
2021-07-19 04:02:46 +05:30
var video: Video!
func makeNSViewController(context _: Context) -> PlayerViewController {
let controller = PlayerViewController()
2021-08-23 00:43:33 +05:30
controller.playbackState = playbackState
2021-07-19 04:02:46 +05:30
controller.video = video
return controller
}
func updateNSViewController(_: PlayerViewController, context _: Context) {}
}