mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Layout improvements
This commit is contained in:
14
macOS/Player.swift
Normal file
14
macOS/Player.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
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) {}
|
||||
}
|
Reference in New Issue
Block a user