Using the .task view modifier
The .onAppear view modifier allows you to execute costly initialization only when a view becomes visible. The .task view modifier allows breaking out asynchronous initialization.
The .onAppear view modifier allows you to execute costly initialization only when a view becomes visible. The .task view modifier allows breaking out asynchronous initialization.
Xcode provides a browser for viewing Apple's documentation, but most developers seem to rely on the web. Dash provides a better, local, alternative.
There's a surprise in store if you create a Developer folder in your home directory.
Beyond Xcode there are a handful of must-have tools that every developer can benefit from. These are my favorites.