Native Swift interop bindings for Apple RealityKit
Install
| Product | Versions |
|---|---|
| .NET |
README
SwiftBindings.Apple.RealityKit
Native .NET bindings for Apple's RealityKit framework — Apple's high-level 3D rendering, simulation, and AR composition framework. These are not Objective-C proxy wrappers; they use .NET 10's native Swift interop for direct, high-performance calls into Swift APIs from C#.
📖 Full usage guide → — Swift→C# naming, ARView, hit-testing, entity gestures, render/debug options, and the runtime gaps to avoid.
Most of the entity / component / scene / transform surface lives in the underlying RealityFoundation framework and is shipped as a separate SwiftBindings.Apple.RealityFoundation package. This package adds the RealityKit-specific surface (ARView, gesture recognizers, render and debug options) and depends on SwiftBindings.Apple.RealityFoundation.
Installation
dotnet add package SwiftBindings.Apple.RealityKit
Requirements
- .NET 10.0+
- Target framework:
net10.0-ios26.2or higher. The package is compiled against the iOS 26.2 SDK supplement, so your app's<TargetFramework>platform version must be ≥ 26.2 to restore it — an explicit lower TPV (e.g.net10.0-ios18.0) or a barenet10.0-ioswhose installed workload defaults below 26.2 fails restore withNU1202. This is the compile-SDK pin, not your app's deployment minimum. - Deployment minimum is separate — set your app's real minimum OS with
<SupportedOSPlatformVersion>(independent of the TFM above). Individual APIs that need a newer OS at runtime are gated by generated[SupportedOSPlatform]attributes; the C# compiler flags a call that isn't valid for your target. - macOS host for development
Usage
using RealityKit; // ARView and other RealityKit-specific types
using RealityFoundation; // Entity, Component, Scene, Transform, ModelEntity…
// ARView and the RealityKit-specific composition surface are bound here; the
// entity-component / scene / transform / animation types come from the sibling
// SwiftBindings.Apple.RealityFoundation package. Refer to Apple's RealityKit
// documentation for the full type surface.
Documentation
- Usage guide (wiki) — full C# walkthrough of the binding surface
- Apple RealityKit framework
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. RealityKit is part of the Apple SDK; refer to Apple's licensing for the underlying framework.
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.