Skip to main content

webview_frame

Function webview_frame 

Source
pub fn webview_frame(webview: &Webview<Wry>) -> WebviewFrame
Available on neither Android nor iOS.
Expand description

Creates a GPUI element that hosts webview, a child webview of the GPUI-backed Tauri window this element renders in.

The element takes the full size of its parent by default; size it like any div. Create the webview hidden (call hide() right after add_child) so it does not flash at its initial bounds, and render each webview in at most one frame at a time. A webview created to replace a closed one needs a label of its own: frames track webviews by label.