Do SwiftData objects conform to Observable?

Asked on 08/02/2024

1 search

Yes, SwiftData objects do conform to Observable. This is mentioned in the Platforms State of the Union session, where it is highlighted that SwiftData integrates well with SwiftUI, making it easier to work with queries while iterating on views. This implies that SwiftData objects can be observed for changes, which is a key feature of the Observable protocol in SwiftUI.