mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
15 lines
359 B
Swift
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) {}
|
|
}
|