yattee/Mac/Player.swift

15 lines
359 B
Swift
Raw Normal View History

2021-07-18 22:32:46 +00:00
import SwiftUI
struct Player: NSViewControllerRepresentable {
var video: Video!
func makeNSViewController(context _: Context) -> PlayerViewController {
let controller = PlayerViewController()
controller.video = video
return controller
}
func updateNSViewController(_: PlayerViewController, context _: Context) {}
}