Skip to content
Mobile
Agent

migration

This page covers the rewrites AI agents most often need when bringing existing Apple-platform 3D code onto SceneViewSwift. The full per-API mapping is in [`docs/docs/cheatsheet-ios.md`](https://github.com/sceneview/sceneview/blob/main/docs/docs/cheatsheet-ios.md); the

From plugin
sceneview
1.4k5 skills5 agents1 MCP

Agent definition

migration.md

Migrating to SceneViewSwift

**End of life:** SceneView for SwiftUI (`SceneViewSwift`), Flutter (`flutter_sceneview`) and React Native (`@sceneview-sdk/react-native`). **4.68.0 (November 2026)** is the last release. No new releases. Published versions stay installable. See [DEPRECATION.md](https://github.com/sceneview/sceneview/blob/main/DEPRECATION.md).

This page covers the rewrites AI agents most often need when bringing existing Apple-platform 3D code onto SceneViewSwift. The full per-API mapping is in [`docs/docs/cheatsheet-ios.md`](https://github.com/sceneview/sceneview/blob/main/docs/docs/cheatsheet-ios.md); the cross-platform rename map is in [`docs/docs/migration.md`](https://github.com/sceneview/sceneview/blob/main/docs/docs/migration.md).

Setup

// Package.swift
.package(url: "https://github.com/sceneview/sceneview.git", exact: "4.68.0")
import SceneViewSwift

From a raw RealityKit `RealityView`

| RealityKit | SceneViewSwift | | --- | --- | | `RealityView { content in … }` | `SceneView { root in … }` (root is the content `Entity`) | | `ModelEntity(named:)` / `Entity(named:)` async load | `try await ModelNode.load("file.usdz")` then `.entity` | | `ModelEntity(mesh: .generateBox(...))` | `GeometryNode.cube(size:color:)` | | Manual `DirectionalLight` entity | `LightNode.directional(color:intensity:castsShadow:)` | | Manual IBL / `ImageBasedLightComponent` | `.environment(.studio)` view modifier | | Hand-rolled gesture recognizers | `.onEntityTapped { }`, per-entity `.onTap/.onDrag/...` |

From SceneKit (`SCNView` / `SCNScene`)

| SceneKit | SceneViewSwift | | --- | --- | | `SCNView` | `SceneView { }` | | `SCNScene(named:)` | `try await ModelNode.load(...)` | | `SCNNode` geometry primitives (`SCNBox`, `SCNSphere`…) | `GeometryNode.cube / .sphere / …` | | `SCNLight` | `LightNode.directional / .point / .spot` | | `SCNCamera` + `allowsCameraControl` | `.cameraControls(.orbit)` | | `node.position = SCNVector3(...)` | `node.position = SIMD3<Float>(...)` |

From Android Kotlin (cross-platform parity)

**Do NOT translate Android Kotlin character by character.** The result-builder, view modifiers, and factory naming differ. Use the **Android↔Apple mapping table** in `cheatsheet-ios.md`. Key shape differences:

| Android (Compose) | Apple (SwiftUI) | | --- | --- | | `SceneView { }` | `SceneView { root in }` or `SceneView { … }` (`@NodeBuilder`) | | `ARSceneView { }` | `ARSceneView(...)` | | `rememberModelInstance(loader, path)` (nullable) | `try await ModelNode.load(path)` (`async throws`) | | `CubeNode(size, material)` | `GeometryNode.cube(size:color:)` | | `ModelNode(centerOrigin = Position(0,-1,0))` (normalized AABB origin) | `.centerOrigin(normalized: SIMD3(0, -1, 0))` (bottom-align — same normalized `-1..1` semantics; apply before positioning: does not compose additively with a prior `.position`) | | `LightNode(type = LightManager.Type.POINT, …)` | `LightNode.point(color:intensity:attenuationRadius:)` | | `AnchorNode(anchor: arcoreAnchor)` | `AnchorNode.world(position:)` / `.plane(...)` | | `rememberEnvironmentLoader` + `rememberEnvironment` | `.environment(.studio)` modifier | | `rememberCameraManipulator()` | `.cameraControls(.orbit)` modifier |

Common compile errors and fixes

1. `Cannot find 'CubeNode' / 'SphereNode' in scope` — those are Android type names. On iOS use `GeometryNode.cube(...)` / `.sphere(...)`. 2. `'async' call in a function that does not support concurrency` — `ModelNode.load` is `async throws`; call it inside `.task { }` or another async context, not directly in a synchronous initializer. 3. `Cannot find 'rememberModelInstance' / 'rememberEngine'` — those are Compose helpers; there is no iOS equivalent. Use `ModelNode.load` + `@State`. 4. `Main actor-isolated property … can not be mutated from a non-isolated context` — RealityKit entities are `@MainActor`; wrap mutation in `await MainActor.run { }`. 5. `Value of type 'ARSceneView' has no member 'playbackDataset'` — AR record playback is Android-only; ARKit has no deterministic playback. iOS `ARRecorder` is record-only.

iOS parity status

Some Android APIs are deprecated no-ops or unsupported on iOS. Before re-attacking one, consult the **"iOS parity status (#1036)"** tables in `docs/docs/cheatsheet-ios.md` — they classify each gap as Deprecated, Android-only, or Approximated.

Read more
@sceneview
Ships withsceneview

The AI-first 3D & AR SDK for Jetpack Compose — and the web. Declarative 3D and AR for app developers who want a model on screen, or in the room, without a game engine: Filament + ARCore on Android, Filament.js + WebXR in the browser, and a Compose

1.4k5 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.4k
Star history of sceneview/sceneview on GitHub, a chart by star-history.com

Other agents on sceneview.

OPENAI-PLUGIN

OPENAI-PLUGIN

Agent

OpenAI's unit of distribution is the **plugin**: a folder with a manifest at `.codex-plugin/plugin.json`, optional skills, an…

@sceneview@sceneviewInstall Agent
REGISTRY

REGISTRY

Agent

This directory ships the SceneView SDK as **agent skills** for AI coding assistants. Each skill is a self-contained `SKILL.md`…

@sceneview@sceneviewInstall Agent
recipes

recipes

Agent

**Do not improvise.** Every pattern below has a matching SwiftUI demo file in `samples/ios-demo/SceneViewDemo/Views/Demos/`. Read…

@sceneview@sceneviewInstall Agent

More agents from other plugins.

claude-workflows

claude-workflows

Agent

Advisory, not binding. Last validated 2026-07 against Claude Code with the Claude 5 family. The instruction files (`AGENTS.md`,…

@zoneminder@zoneminderInstall Agent

Questions about migration.

Which coding agents can use migration?
migration installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.