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.
Cool. Thanks for the info. I’ll give it a go.