Quit application?

Lets say I want to implement a Quit button. How do I signal the app to quit?

All you need to do is return the following in update:

This function return a Command that will request from the runtime to close the application.

update doesn’t have a return type.

Make sure you use Application in iced::application - Rust instead of Sandbox

Cool. Thanks for the info. I’ll give it a go.