clarify
This commit is contained in:
1 parent
27b7679bf8
commit
81bfac20f9
2 files changed
-3
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
|
||||||
|
|||||||
Reference in new issue
Block a user