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.
Some interesting iOS, macOS, or Swift development articles from the week.
SwiftUI gives you a huge advantage in writing your own applications. But there are some things you should be aware of when it comes to NavigationLink!
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.
Creating a common UI layout in SwiftUI and making it reusable.