Apple's Tutorial "CPU-GPU-Synchronization.xcodeproj" is readily available so I won't post any part of it. It is a stand-alone app that I want to launch from my SwiftUI app in some-or-any view. In "developer.apple.com/forums/thread/119112" a "Graphics and Games Engineer " kindly posted the code for creating the Coordinator, device, CommandQueue, etc. within SwiftUI code. What code/syntax is needed in either the objc tutorial code or the SwiftUI code to get the tutorial app to draw into the SwiftUI-created space?
Or am I making this more complicated than it should be?
I have tried creating a class in Swift with the Swift UIRepresentable as a var, then preface that class with "@objc" which should have made it available to the tutorial code, but it doesn't recognize it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: