try my way
This commit is contained in:
1 parent
6fecc1e95e
commit
fa1cd053c8
16 files changed
+521
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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) {}
|
||||
}
|
||||
Reference in new issue
Block a user