tauri-apps/tauri

[feat] Regarding the problem of hiding and displaying multiple webviews

moom-en opened this issue · 0 comments

Describe the problem

In order to prevent the program from frequently creating and closing webviewWindow, should we add corresponding hiding and display functions?
for example, I need to open many webviews and switch back and forth. Here, only one webview needs to be displayed at all times, and the rest should be hidden to avoid creating a webview every time I open it. (I don't know if my example is correct, but I think it should be like this)

Describe the solution you'd like

webview.hide(); hide the webviewWindow
webview.show(); display the webviewWindow

Alternatives considered

No response

Additional context

No response