Just got this nice Runtime Issue in the latest Xcode beta. It is shown when using a regular @Query in a SwiftUI view. It seems to me that this is currently not actionable, since we can't create an index in SwiftData, yet, right? (Other than manipulating the underlying sqlite database directly, which seems not to be a good idea). Also why is SwiftData executing its query on the main thread? Setting the result on the main thread makes sense, but executing the query…

#swiftui #swiftdata

@h_r_w_go Hi there! I think you might be hitting a bug with Xcode. Would you possibly be able to file a feedback report, including a screenshot of the backtrace for this warning? That would be SUPER helpful!
@ci Hi! I will, once I can reproduce it again. I went back a few commits, to check if it was reproducible on an older version of my project, but unfortunately no. If it was directly coding related, then it must have been an in between version :-(. Anyways, happy Vision Pro Day, if you are celebrating ;-)
@h_r_w_go Ah, well happy to pass it along if you end up seeing it again. And yes, enjoy Vision Pro today 🥽
@ci Just saw it again. Filed FB13579716 for it. If I can gather any more information for you to help with this, then please let me know.