2021-05-03 17:16:51 +03:00
|
|
|
# Splashscreen example
|
|
|
|
|
|
|
|
This example demonstrates how a splashscreen can be implemented when waiting on an initialization code on Rust or on the UI.
|
|
|
|
|
|
|
|
## Running the example
|
|
|
|
|
|
|
|
Run the following scripts on the root directory of the repository:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# runs the example that wait on a Rust initialization script to show the main window
|
2021-08-17 16:27:18 +03:00
|
|
|
$ cargo run --example splashscreen
|
2021-05-03 17:16:51 +03:00
|
|
|
# runs the example that wait on the UI to load to show the main window
|
2021-08-17 16:27:18 +03:00
|
|
|
$ cargo run --example splashscreen --features ui
|
2021-05-03 17:16:51 +03:00
|
|
|
```
|