RealityKit includes an ARView class that works on macOS, but I found it very limited. This package includes an ARView that has explicit camera control and the wrappers to use the view with SwiftUI.
|Last commit: 2 weeks ago|
Initial release version for the CameraControlARView swift package, which provides an ARView subclass for macOS that enables a perspective camera and controls the camera from keyboard, mouse, and trackpad. This lets you get up and running with an "active" view that leverages RealityKit to provide 3D rendering.
The view offers control in one of two modes: arc-ball and first person. The
arcball mode rotates and orbits the camera around a fixed position, where
firstperson mode allows greater freedom of movement within the 3D rendered environment.
The package also includes a SwiftUI container view for hosting this view within SwiftUI.