21 Followers
411 Following
742 Posts
@cabel Now at Moms SF

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