@observable
Generated on 11/8/2024
1 search
It seems like you're interested in the concept of observables, particularly in the context of Swift and concurrency. At WWDC 2024, there was a session titled "Migrate your app to Swift 6" that discussed related topics, such as handling shared mutable state and ensuring data-race safety when working with SwiftUI observable objects and actors.
In this session, they explored how to manage data safely across different actors, especially when dealing with SwiftUI observable objects. For instance, they discussed the importance of marking types as Sendable
to prevent data races when sending data between actors. This is particularly relevant when you have a public type that needs to be shared across different parts of your app, such as a model used in a SwiftUI view.
If you're interested in more details about handling concurrency and observables in Swift, you might want to check out the session Migrate your app to Swift 6 (17:12) for insights on managing shared mutable state and ensuring data-race safety.
Migrate your app to Swift 6
Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.
Track model changes with SwiftData history
Reveal the history of your model’s changes with SwiftData! Use the history API to understand when data store changes occurred, and learn how to use this information to build features like remote server sync and out-of-process change handing in your app. We’ll also cover how you can build support for the history API into a custom data store.
Meet FinanceKit
Learn how FinanceKit lets your financial management apps seamlessly and securely share on-device data from Apple Cash, Apple Card, and more, with user consent and control. Find out how to request one-time and ongoing access to accounts, transactions, and balances — and how to build great experiences for iOS and iPadOS.