Broken SwiftUI previews

Whenever I use @ObservedResults or @ObservedRealmObject in a view my SwiftUI preview stops working. Is there some obvious setup step that I am missing so this works reliably?

@Thomas_Rademaker you can refer our sample apps. Find them in ‘realm-swift/examples/ios/swift/RealmExamples.xcworkspace’

I just rechecked the latest version of RealmSwift (v10.24.2) - previews for SwiftUI are working fine for me.

1 Like

Thank you @Pavel_Yakimenko . I’ll take a look through the sample apps.