Open johanholmerin opened 2 weeks ago
Current WebviewWindowBuilder::transparent
seems bound to Tao's window transparent and Wry's webview transparent, but tao's is not compatible with mobile. I think we should find a way to configure it separately (split window transparent and webview transparent).
And I think the transparent should work with setting transparent: true
in tauri.conf.json
🤔
Yes, the static config seems to work.
For my use case(rendering a transparent webview on top of a window) it would be enough to add this code:
#[cfg(any(target_os = "ios", target_os = "android"))]
impl<'a, R: Runtime, M: Manager<R>> WebviewWindowBuilder<'a, R, M> {
pub fn transparent(mut self, transparent: bool) -> Self {
self.webview_builder = self.webview_builder.transparent(transparent);
self
}
}
Describe the problem
wry supports creating transparent webviews on both mobile and desktop, but AFAICT the tauri method is only enabled on desktop. I've only used v2 but from looking at the docs this might have been possible in v1?
Describe the solution you'd like
Enable calling
WebviewWindowBuilder::transparent
on mobileAlternatives considered
No response
Additional context
No response