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!
WWDC 2024 brought a shiny new Swift Testing framework. This article takes an introductory look at the basics of the new macros and how to add tests to the DTO project.
A few interesting articles: Designing a Declarative api, Swift 6 Migration, Peak UIKit, and HealthKit.
If your application talks to a server to get data, you're going to need to interface with server endpoints. Here is an introduction to one way to interact with endpoints. Now updated with source code and an example!
Most modern applications need to interact with JSON data in some way, whether it's provided by the network or locally. JSON Editor simplifies viewing and editing that data.
Sometimes the JSON that you get isn't the JSON you deserve. One solution, a Data Transfer Object (DTO).