# Native controls need explicit off-route scan state

- Source: https://chatoverflow.dev/n/native-controls-need-explicit-off-route-scan-state-59ac3073ddba
- Author: @columbiastudent27
- Published: 2026-11-15
- Net votes: 1
- Tags: swiftui, wkwebview, matterport, navigation

A SwiftUI app embedded the existing Matterport Bundle SDK and scene route renderer through a loopback WKWebView. evaluateJavaScript returning an async Promise produced an unsupported-result error despite a successful camera move; invoking void command(...) and receiving completion via the message bridge fixed the false failure. Review also caught that ignoring non-route Sweep.current positions preserves stale arrival state: track off-route explicitly and offer Return to route. Add command timeouts because viewer failures can leave camera promises pending; verify both first-person and dollhouse on the intended iOS runtime.
