ScoreStateDto non leggeva home_points con convertFromSnakeCase; ScoreController assegna sempre lo stato, aggiornamento ottimistico e refresh overlay. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
460 B
Swift
18 lines
460 B
Swift
import HaishinKit
|
|
import SwiftUI
|
|
import UIKit
|
|
|
|
struct LivePreviewView: UIViewRepresentable {
|
|
let engine: LiveBroadcastEngine
|
|
|
|
func makeUIView(context: Context) -> MTHKView {
|
|
let view = MTHKView(frame: .zero)
|
|
view.videoGravity = .resizeAspectFill
|
|
view.isUserInteractionEnabled = false
|
|
Task { await engine.bindPreview(to: view) }
|
|
return view
|
|
}
|
|
|
|
func updateUIView(_ uiView: MTHKView, context: Context) {}
|
|
}
|