Files
__mahjong/components/render/ios/RenderView.swift
T

12 lines
358 B
Swift

import SwiftUI
// SwiftUI counterpart of the macOS RenderView. It vends the shared GL view,
// which RenderVM also keeps alive and drives with a timer.
struct RenderView: UIViewRepresentable {
func makeUIView(context: Context) -> RenderGLView {
RenderVM.shared!.glView
}
func updateUIView(_ uiView: RenderGLView, context: Context) {}
}