|
I tried my first steps into SwiftData and now i'm stuck for the past 4 weeks. I hope, somebody can help me: I created a tiny, where you can do treatment planning for Patients. I created a model using SwiftData and iCloudkit:
Now have a view with a list of patients, and each item leading to an Patient Detail View. In this view, i only want to show all related dockets, sorted by orderIndex. Because i want to use .onMove to reorder the Dockets and dynamically update the orderIndex-value, i need @Query to fetch all the related dockets (for this, i use the following solution )
i tried to everything to filter the Query directly, or to copy the Patient.uniqueId to the Docket.referredId and to something like
but it didn' work at all. I hope, somebody can help me! After 4 weeks trying to solve this error on my own, i'm kinda desperate. Thank you! |
|
Hi, I did a sample of your project, I had to add the
|
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.