iOS: Fix canvas touch events and auto-hide status bubble

- Disable scroll on WKWebView to allow touch events to reach canvas
- Add WKNavigationDelegate to intercept clawdis:// deep links from canvas
- Wire up onDeepLink callback to handle taps on canvas buttons
- Auto-hide status bubble after 3 seconds
This commit is contained in:
Peter Steinberger
2025-12-14 05:14:26 +00:00
parent 26bbddde8f
commit a48aebc78c
2 changed files with 52 additions and 0 deletions

View File

@@ -35,6 +35,14 @@ final class NodeAppModel {
let enabled = UserDefaults.standard.bool(forKey: "voiceWake.enabled")
self.voiceWake.setEnabled(enabled)
// Wire up deep links from canvas taps
self.screen.onDeepLink = { [weak self] url in
guard let self else { return }
Task { @MainActor in
await self.handleDeepLink(url: url)
}
}
}
func setScenePhase(_ phase: ScenePhase) {