Skip to main content

Multiwin

Ease of Use
Extensibility
Performance
Security
Pros:
  • Windows can be spawned or destroyed at runtime
  • Separation of concerns
Cons:
  • Somewhat complex

Description

The Multiwin recipe will allow you to have multiple windows.

Diagram

graph LR A==>H H==>F H==>G subgraph WEBVIEW F end subgraph WINIT G end subgraph RUST A end A[Binary] F[Window] G[Window] H{Bootstrap} style WINIT stroke:#1D81EE,stroke-width:4px style RUST fill:#fad3a9,stroke:#F28918,stroke-width:4px style WEBVIEW fill:#abd0f9,stroke:#1D81EE,stroke-width:4px

Configuration

Here's what you need to add to your tauri.conf.json file:

"tauri": {
"allowlist": {}, // all API endpoints are default false
"windows": [{
"title": "Window1",
"label": "main",
}, {
"title": "Splash",
"label": "splashscreen"
}]
}