Open johanholmerin opened 5 days ago
The macOS behavior is the correct one. That's probably because we add the webview as a subview on top of the window contentView (Idk if that makes sense, I am not a macOS developer) but we don't do the same on iOS? this is the related code: https://github.com/tauri-apps/wry/blob/39fc82c9276bd039a9130919645db149f067719a/src/wkwebview/mod.rs#L1007-L1054
Describe the bug
I'm trying to render a transparent tauri webview on top of wgpu but I'm running into some inconsistencies between platforms. On macOS everything works correctly, but on iOS the wgpu surface is rendered on top of the the webview instead. I'm not sure which is the correct behavior but that it differs between targets seems like a bug to me.
Reproduction
https://github.com/johanholmerin/tauri-v2-wgpu/tree/mobile
Compare
cargo tauri dev
andcargo tauri ios dev
Expected behavior
macOS:
iOS:
(webview is rendered underneath wgpu)
Full
tauri info
outputStack trace
No response
Additional context
No response