This SwiftUI application demonstrates how to schedule synchronous and asynchronous work when a Button is tapped.
Refer to the four Buttons in the ContentView struct. Each Button calls into a function of a MainActor view model either directly or via a Task. Each of the functions in the view model is declared as nonisolated
or async
or neither or both.