We often use @Published and Observable objects to communicate changes in a data source to a view in SwiftUI. In this video we start there and then refactor to use an AsyncSequence. Sure, we still use @Published within our view model, but we use the AsyncSequence as our first step.
Note: In the video I refer to the Observation Pitch. It is now a Swift Evolution proposal and will likely be adopted soon: [ Ссылка ]
Part 2: [ Ссылка ]
For more details, check out my book "The Curious Case of the Async Cafe" at [ Ссылка ]
Ещё видео!