mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
15 lines
359 B
Swift
15 lines
359 B
Swift
|
import SwiftUI
|
||
|
|
||
|
struct Player: UIViewControllerRepresentable {
|
||
|
var video: Video?
|
||
|
|
||
|
func makeUIViewController(context _: Context) -> PlayerViewController {
|
||
|
let controller = PlayerViewController()
|
||
|
controller.video = video
|
||
|
|
||
|
return controller
|
||
|
}
|
||
|
|
||
|
func updateUIViewController(_: PlayerViewController, context _: Context) {}
|
||
|
}
|