Using the new SceneKit SceneView in SwiftUI how do I turn on the SceneKit debug parameters? The current options parameter only takes a limited number of Options?
https://developer.apple.com/documentation/scenekit/sceneview/options
https://developer.apple.com/documentation/scenekit/sceneview/options
Code Block swift struct ContentView : View { @State var theScene = SCNScene(named: "ship.scn")! @State private var pointOfView = "distantCamera" public var body: some View { ZStack { SceneView( scene: theScene, pointOfView: theScene.rootNode.childNode(withName: pointOfView, recursively: true), options: [ .allowsCameraControl, SCNDebugOptions.showBoundingBoxes ] - [ERROR] ) Button(action: { // Can I turn on debug for SceneView here? // show SCNView statistics such as fps and timing information scnView.showsStatistics = true - [ERROR] scnView.debugOptions = [.renderAsWireframe, .showBoundingBoxes] - [ERROR] }) { Text("Debug").padding(.top, 300) } } } }