yattee/macOS/Player.swift
2021-08-02 01:18:21 +02:00

15 lines
359 B
Swift

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) {}
}