ios2 attempt 2 #5

Open
kornerr wants to merge 12 commits from ios2 into master
pull from: ios2
2 changed files with 0 additions and 3 deletions
Showing only changes of commit 81bfac20f9 - Show all commits

No files matched your search

@@ -1,7 +1,5 @@
import SwiftUI 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 { struct RenderView: UIViewRepresentable {
func makeUIView(context: Context) -> RenderGLView { func makeUIView(context: Context) -> RenderGLView {
RenderVM.shared!.glView RenderVM.shared!.glView
@@ -1,7 +1,6 @@
import AppKit import AppKit
import SwiftUI import SwiftUI
/// Render view for SwiftUI
struct RenderView: NSViewRepresentable { struct RenderView: NSViewRepresentable {
func makeNSView(context: Context) -> RenderGLView { func makeNSView(context: Context) -> RenderGLView {
RenderVM.shared!.glView RenderVM.shared!.glView