Open-source implementation of Apple's Spatial framework to Create and manipulate 3D mathematical primitives.
The main goal of this project is to provide a compatible, reliable and efficient implementation which can be used on Apple's operating systems before iOS 16.0, iPadOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, as well as Linux, Windows and WebAssembly.
To add OpenSpatial to your SwiftPM package, add the OpenSpatial package to the list of package and target dependencies in your Package.swift file.
dependencies: [
.package(url: "https://github.com/helbertgs/OpenSpatial.git", branch: "main")
],
targets: [
.target(
name: "MyAwesomePackage",
dependencies: [
.product(name: "OpenSpatial", package: "OpenSpatial")
]
),
]OpenSpatial can also be added as a SwiftPM dependency directly in your Xcode project (requires Xcode 11 upwards).
To do so, open Xcode, use File → Swift Packages → Add Package Dependency…, enter the repository URL, choose the latest available version, and activate the checkboxes:
