Swiftpack.co - heckj/CameraControlARView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by heckj.
heckj/CameraControlARView 0.5.0
an ARView for macOS that has explicit camera control and the wrappers to use the view with SwiftUI.
⭐️ 13
🕓 19 weeks ago
macOS
.package(url: "https://github.com/heckj/CameraControlARView.git", from: "0.5.0")

CameraControlARView

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.

GitHub

link
Stars: 13
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.5.0 : Initial Release
19 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.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics