I am trying to use SceneKit in SwiftUI. SceneView makes many things easy without the need of the UIViewRepresentable but I cannot reach to the location information when I tap on the scene in the SceneView.
Is there a way to get the nodes in a scene with the tap gesture in a SceneView?
import SwiftUI
.........
.........
SceneView(
// 1
scene: modelSceneKit.scene,
// 2
pointOfView: moveCamera(),
// 3
options: nil
)
.gesture(
.onEnded(){ event in
// get nodes in a scene
}
)
.........
.........