mirror of
https://github.com/yattee/yattee.git
synced 2025-11-30 13:18:15 +00:00
Display more details in player view
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import SwiftUI
|
||||
|
||||
struct Player: NSViewControllerRepresentable {
|
||||
@ObservedObject var playbackState: PlaybackState
|
||||
var video: Video!
|
||||
|
||||
func makeNSViewController(context _: Context) -> PlayerViewController {
|
||||
let controller = PlayerViewController()
|
||||
|
||||
controller.playbackState = playbackState
|
||||
controller.video = video
|
||||
|
||||
return controller
|
||||
|
||||
Reference in New Issue
Block a user